diff --git a/README.md b/README.md index 9527776..e91e844 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,46 @@ # Shared Travis Configuration Imports -This repository is managed by the [Package Maintenance Working Group](https://github.com/nodejs/package-maintenance), see [Governance](https://github.com/nodejs/package-maintenance/blob/master/Governance.md). +- This repository is managed by the [Package Maintenance Working Group](https://github.com/nodejs/package-maintenance), see [Governance](https://github.com/nodejs/package-maintenance/blob/master/Governance.md). +- Read more about [Shared Build Configurations in Travis CI](https://docs.travis-ci.com/user/build-config-imports/). +## Usage + +Replace the list of `node_js` versions in your `.travis.yml` with one of the available files. + +### Examples + +#### `lts` policy: use LTS and current Node.js releases, starting with v10.x + +``` +import: + - nodejs/ci-config-travis:lts/gte-10.yml +``` + +- Travis CI will use the latest version of each release line in the list +- New major Node.js versions, greater or equal to v10.0.0, will be added to the list as soon as they are released +- Once added, LTS versions will never be removed. Non-LTS versions will be removed when they reach their lifetime. + - Note that if your policy is to only support LTS versions, then removing the non-LTS version in your test matrix is not a breaking change, as the non-LTS version was never supported (it was only used for test purposes). + + +#### `all` policy: use all Node.js releases, starting with v14.x + +``` +import: + - nodejs/ci-config-travis:all/gte-14.yml +``` + +- Travis will use the latest version of each release line in the list +- New major Node.js versions, greater or equal to v14.0.0, will be added to the list as soon as they are released +- Once added, versions will never be removed from the list + + +#### Strict `lts` policy: use only LTS Node.js releases, starting with v10.x + +``` +import: + - nodejs/ci-config-travis:lts/strict/gte-10.yml +``` + +- Travis will use the latest version of each release line in the list +- New major Node.js versions, greater or equal to v14.0.0, will be added to the list as soon as they achieve LTS status (i.e. ~6 months after they are released) +- Once added, versions will never be removed from the list diff --git a/all/gte-10.yml b/all/gte-10.yml new file mode 100644 index 0000000..b456638 --- /dev/null +++ b/all/gte-10.yml @@ -0,0 +1,6 @@ +node_js: + - 14 + - 13 + - 12 + - 11 + - 10 diff --git a/all/gte-11.yml b/all/gte-11.yml new file mode 100644 index 0000000..ab900b3 --- /dev/null +++ b/all/gte-11.yml @@ -0,0 +1,5 @@ +node_js: + - 14 + - 13 + - 12 + - 11 diff --git a/all/gte-12.yml b/all/gte-12.yml new file mode 100644 index 0000000..3a33f7f --- /dev/null +++ b/all/gte-12.yml @@ -0,0 +1,4 @@ +node_js: + - 14 + - 13 + - 12 diff --git a/all/gte-13.yml b/all/gte-13.yml new file mode 100644 index 0000000..ccf3c6a --- /dev/null +++ b/all/gte-13.yml @@ -0,0 +1,3 @@ +node_js: + - 14 + - 13 diff --git a/all/gte-14.yml b/all/gte-14.yml new file mode 100644 index 0000000..132af7a --- /dev/null +++ b/all/gte-14.yml @@ -0,0 +1,2 @@ +node_js: + - 14 diff --git a/all/gte-4.yml b/all/gte-4.yml new file mode 100644 index 0000000..360fa4e --- /dev/null +++ b/all/gte-4.yml @@ -0,0 +1,12 @@ +node_js: + - 14 + - 13 + - 12 + - 11 + - 10 + - 9 + - 8 + - 7 + - 6 + - 5 + - 4 diff --git a/all/gte-5.yml b/all/gte-5.yml new file mode 100644 index 0000000..9695480 --- /dev/null +++ b/all/gte-5.yml @@ -0,0 +1,11 @@ +node_js: + - 14 + - 13 + - 12 + - 11 + - 10 + - 9 + - 8 + - 7 + - 6 + - 5 diff --git a/all/gte-6.yml b/all/gte-6.yml new file mode 100644 index 0000000..88c6366 --- /dev/null +++ b/all/gte-6.yml @@ -0,0 +1,10 @@ +node_js: + - 14 + - 13 + - 12 + - 11 + - 10 + - 9 + - 8 + - 7 + - 6 diff --git a/all/gte-7.yml b/all/gte-7.yml new file mode 100644 index 0000000..271d2d2 --- /dev/null +++ b/all/gte-7.yml @@ -0,0 +1,9 @@ +node_js: + - 14 + - 13 + - 12 + - 11 + - 10 + - 9 + - 8 + - 7 diff --git a/all/gte-8.yml b/all/gte-8.yml new file mode 100644 index 0000000..e8b9def --- /dev/null +++ b/all/gte-8.yml @@ -0,0 +1,8 @@ +node_js: + - 14 + - 13 + - 12 + - 11 + - 10 + - 9 + - 8 diff --git a/all/gte-9.yml b/all/gte-9.yml new file mode 100644 index 0000000..64b7c62 --- /dev/null +++ b/all/gte-9.yml @@ -0,0 +1,7 @@ +node_js: + - 14 + - 13 + - 12 + - 11 + - 10 + - 9 diff --git a/lts/gte-10.yml b/lts/gte-10.yml new file mode 100644 index 0000000..b5fd230 --- /dev/null +++ b/lts/gte-10.yml @@ -0,0 +1,4 @@ +node_js: + - 14 + - 12 + - 10 diff --git a/lts/gte-12.yml b/lts/gte-12.yml new file mode 100644 index 0000000..e91321a --- /dev/null +++ b/lts/gte-12.yml @@ -0,0 +1,3 @@ +node_js: + - 14 + - 12 diff --git a/lts/gte-14.yml b/lts/gte-14.yml new file mode 100644 index 0000000..132af7a --- /dev/null +++ b/lts/gte-14.yml @@ -0,0 +1,2 @@ +node_js: + - 14 diff --git a/lts/gte-4.yml b/lts/gte-4.yml new file mode 100644 index 0000000..75d40e5 --- /dev/null +++ b/lts/gte-4.yml @@ -0,0 +1,7 @@ +node_js: + - 14 + - 12 + - 10 + - 8 + - 6 + - 4 diff --git a/lts/gte-6.yml b/lts/gte-6.yml new file mode 100644 index 0000000..7c854d7 --- /dev/null +++ b/lts/gte-6.yml @@ -0,0 +1,6 @@ +node_js: + - 14 + - 12 + - 10 + - 8 + - 6 diff --git a/lts/gte-8.yml b/lts/gte-8.yml new file mode 100644 index 0000000..68b7db2 --- /dev/null +++ b/lts/gte-8.yml @@ -0,0 +1,5 @@ +node_js: + - 14 + - 12 + - 10 + - 8 diff --git a/lts/strict/gte-10.yml b/lts/strict/gte-10.yml new file mode 100644 index 0000000..0e25cdd --- /dev/null +++ b/lts/strict/gte-10.yml @@ -0,0 +1,3 @@ +node_js: + - 12 + - 10 diff --git a/lts/strict/gte-12.yml b/lts/strict/gte-12.yml new file mode 100644 index 0000000..315638b --- /dev/null +++ b/lts/strict/gte-12.yml @@ -0,0 +1,2 @@ +node_js: + - 12 diff --git a/lts/strict/gte-4.yml b/lts/strict/gte-4.yml new file mode 100644 index 0000000..7182db4 --- /dev/null +++ b/lts/strict/gte-4.yml @@ -0,0 +1,6 @@ +node_js: + - 12 + - 10 + - 8 + - 6 + - 4 diff --git a/lts/strict/gte-6.yml b/lts/strict/gte-6.yml new file mode 100644 index 0000000..b2af8ba --- /dev/null +++ b/lts/strict/gte-6.yml @@ -0,0 +1,5 @@ +node_js: + - 12 + - 10 + - 8 + - 6 diff --git a/lts/strict/gte-8.yml b/lts/strict/gte-8.yml new file mode 100644 index 0000000..eee009f --- /dev/null +++ b/lts/strict/gte-8.yml @@ -0,0 +1,4 @@ +node_js: + - 12 + - 10 + - 8