From f03e9d8c39bbf1260d4f0e1a7e8fc429c50b4beb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominykas=20Blyz=CC=8Ce=CC=87?= Date: Mon, 29 Jun 2020 18:24:05 +0300 Subject: [PATCH 1/2] feat: initial scaffold MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Dominykas Blyžė --- README.md | 44 +++++++++++++++++++++++++++++++++++++++++-- all/gte-10.yml | 6 ++++++ all/gte-11.yml | 5 +++++ all/gte-12.yml | 4 ++++ all/gte-13.yml | 3 +++ all/gte-14.yml | 2 ++ all/gte-4.yml | 12 ++++++++++++ all/gte-5.yml | 11 +++++++++++ all/gte-6.yml | 10 ++++++++++ all/gte-7.yml | 9 +++++++++ all/gte-8.yml | 8 ++++++++ all/gte-9.yml | 7 +++++++ lts/gte-10.yml | 4 ++++ lts/gte-12.yml | 3 +++ lts/gte-14.yml | 2 ++ lts/gte-4.yml | 7 +++++++ lts/gte-6.yml | 6 ++++++ lts/gte-8.yml | 5 +++++ lts/strict/gte-10.yml | 3 +++ lts/strict/gte-12.yml | 2 ++ lts/strict/gte-4.yml | 6 ++++++ lts/strict/gte-6.yml | 5 +++++ lts/strict/gte-8.yml | 4 ++++ 23 files changed, 166 insertions(+), 2 deletions(-) create mode 100644 all/gte-10.yml create mode 100644 all/gte-11.yml create mode 100644 all/gte-12.yml create mode 100644 all/gte-13.yml create mode 100644 all/gte-14.yml create mode 100644 all/gte-4.yml create mode 100644 all/gte-5.yml create mode 100644 all/gte-6.yml create mode 100644 all/gte-7.yml create mode 100644 all/gte-8.yml create mode 100644 all/gte-9.yml create mode 100644 lts/gte-10.yml create mode 100644 lts/gte-12.yml create mode 100644 lts/gte-14.yml create mode 100644 lts/gte-4.yml create mode 100644 lts/gte-6.yml create mode 100644 lts/gte-8.yml create mode 100644 lts/strict/gte-10.yml create mode 100644 lts/strict/gte-12.yml create mode 100644 lts/strict/gte-4.yml create mode 100644 lts/strict/gte-6.yml create mode 100644 lts/strict/gte-8.yml diff --git a/README.md b/README.md index 7b0cdad..00c240f 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,46 @@ # Shared Travis Configuration Imports -This repository is managed by the -[package-maintenance team](https://github.com/nodejs/package-maintenance). +- This repository is managed by the [package-maintenance team](https://github.com/nodejs/package-maintenance). +- 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..7898bdb --- /dev/null +++ b/all/gte-10.yml @@ -0,0 +1,6 @@ +node_js: + - 10 + - 11 + - 12 + - 13 + - 14 diff --git a/all/gte-11.yml b/all/gte-11.yml new file mode 100644 index 0000000..fc11fa4 --- /dev/null +++ b/all/gte-11.yml @@ -0,0 +1,5 @@ +node_js: + - 11 + - 12 + - 13 + - 14 diff --git a/all/gte-12.yml b/all/gte-12.yml new file mode 100644 index 0000000..ba7b4d1 --- /dev/null +++ b/all/gte-12.yml @@ -0,0 +1,4 @@ +node_js: + - 12 + - 13 + - 14 diff --git a/all/gte-13.yml b/all/gte-13.yml new file mode 100644 index 0000000..96d18b2 --- /dev/null +++ b/all/gte-13.yml @@ -0,0 +1,3 @@ +node_js: + - 13 + - 14 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..617229f --- /dev/null +++ b/all/gte-4.yml @@ -0,0 +1,12 @@ +node_js: + - 4 + - 5 + - 6 + - 7 + - 8 + - 9 + - 10 + - 11 + - 12 + - 13 + - 14 diff --git a/all/gte-5.yml b/all/gte-5.yml new file mode 100644 index 0000000..49a8fd4 --- /dev/null +++ b/all/gte-5.yml @@ -0,0 +1,11 @@ +node_js: + - 5 + - 6 + - 7 + - 8 + - 9 + - 10 + - 11 + - 12 + - 13 + - 14 diff --git a/all/gte-6.yml b/all/gte-6.yml new file mode 100644 index 0000000..a773040 --- /dev/null +++ b/all/gte-6.yml @@ -0,0 +1,10 @@ +node_js: + - 6 + - 7 + - 8 + - 9 + - 10 + - 11 + - 12 + - 13 + - 14 diff --git a/all/gte-7.yml b/all/gte-7.yml new file mode 100644 index 0000000..4cd1695 --- /dev/null +++ b/all/gte-7.yml @@ -0,0 +1,9 @@ +node_js: + - 7 + - 8 + - 9 + - 10 + - 11 + - 12 + - 13 + - 14 diff --git a/all/gte-8.yml b/all/gte-8.yml new file mode 100644 index 0000000..d1f2471 --- /dev/null +++ b/all/gte-8.yml @@ -0,0 +1,8 @@ +node_js: + - 8 + - 9 + - 10 + - 11 + - 12 + - 13 + - 14 diff --git a/all/gte-9.yml b/all/gte-9.yml new file mode 100644 index 0000000..f3028e0 --- /dev/null +++ b/all/gte-9.yml @@ -0,0 +1,7 @@ +node_js: + - 9 + - 10 + - 11 + - 12 + - 13 + - 14 diff --git a/lts/gte-10.yml b/lts/gte-10.yml new file mode 100644 index 0000000..259dcf7 --- /dev/null +++ b/lts/gte-10.yml @@ -0,0 +1,4 @@ +node_js: + - 10 + - 12 + - 14 diff --git a/lts/gte-12.yml b/lts/gte-12.yml new file mode 100644 index 0000000..2ae3243 --- /dev/null +++ b/lts/gte-12.yml @@ -0,0 +1,3 @@ +node_js: + - 12 + - 14 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..87aa45c --- /dev/null +++ b/lts/gte-4.yml @@ -0,0 +1,7 @@ +node_js: + - 4 + - 6 + - 8 + - 10 + - 12 + - 14 diff --git a/lts/gte-6.yml b/lts/gte-6.yml new file mode 100644 index 0000000..5609752 --- /dev/null +++ b/lts/gte-6.yml @@ -0,0 +1,6 @@ +node_js: + - 6 + - 8 + - 10 + - 12 + - 14 diff --git a/lts/gte-8.yml b/lts/gte-8.yml new file mode 100644 index 0000000..30e72b7 --- /dev/null +++ b/lts/gte-8.yml @@ -0,0 +1,5 @@ +node_js: + - 8 + - 10 + - 12 + - 14 diff --git a/lts/strict/gte-10.yml b/lts/strict/gte-10.yml new file mode 100644 index 0000000..b731f13 --- /dev/null +++ b/lts/strict/gte-10.yml @@ -0,0 +1,3 @@ +node_js: + - 10 + - 12 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..f05f4fd --- /dev/null +++ b/lts/strict/gte-4.yml @@ -0,0 +1,6 @@ +node_js: + - 4 + - 6 + - 8 + - 10 + - 12 diff --git a/lts/strict/gte-6.yml b/lts/strict/gte-6.yml new file mode 100644 index 0000000..386172a --- /dev/null +++ b/lts/strict/gte-6.yml @@ -0,0 +1,5 @@ +node_js: + - 6 + - 8 + - 10 + - 12 diff --git a/lts/strict/gte-8.yml b/lts/strict/gte-8.yml new file mode 100644 index 0000000..ab2ee39 --- /dev/null +++ b/lts/strict/gte-8.yml @@ -0,0 +1,4 @@ +node_js: + - 8 + - 10 + - 12 From a720c7a3ae19da6c0bab76a376854c2c568b453a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominykas=20Blyz=CC=8Ce=CC=87?= Date: Wed, 8 Jul 2020 23:52:33 +0300 Subject: [PATCH 2/2] feat: re-order the versions so that the newest version is tested first MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Travis runs jobs from top to bottom, and the newest nodes are both the most important ones and the fastest ones, so to get the fastest feedback, you want to see those results first (and you want them to thus finish first). This is more important when you have more than 5 builds (since 5 is the current throttling threshold for travis) but can also happen when you have other projects in the same org running. Signed-off-by: Dominykas Blyžė --- all/gte-10.yml | 8 ++++---- all/gte-11.yml | 6 +++--- all/gte-12.yml | 4 ++-- all/gte-13.yml | 2 +- all/gte-4.yml | 20 ++++++++++---------- all/gte-5.yml | 18 +++++++++--------- all/gte-6.yml | 16 ++++++++-------- all/gte-7.yml | 14 +++++++------- all/gte-8.yml | 12 ++++++------ all/gte-9.yml | 10 +++++----- lts/gte-10.yml | 4 ++-- lts/gte-12.yml | 2 +- lts/gte-4.yml | 10 +++++----- lts/gte-6.yml | 8 ++++---- lts/gte-8.yml | 6 +++--- lts/strict/gte-10.yml | 2 +- lts/strict/gte-4.yml | 8 ++++---- lts/strict/gte-6.yml | 6 +++--- lts/strict/gte-8.yml | 4 ++-- 19 files changed, 80 insertions(+), 80 deletions(-) diff --git a/all/gte-10.yml b/all/gte-10.yml index 7898bdb..b456638 100644 --- a/all/gte-10.yml +++ b/all/gte-10.yml @@ -1,6 +1,6 @@ node_js: - - 10 - - 11 - - 12 - - 13 - 14 + - 13 + - 12 + - 11 + - 10 diff --git a/all/gte-11.yml b/all/gte-11.yml index fc11fa4..ab900b3 100644 --- a/all/gte-11.yml +++ b/all/gte-11.yml @@ -1,5 +1,5 @@ node_js: - - 11 - - 12 - - 13 - 14 + - 13 + - 12 + - 11 diff --git a/all/gte-12.yml b/all/gte-12.yml index ba7b4d1..3a33f7f 100644 --- a/all/gte-12.yml +++ b/all/gte-12.yml @@ -1,4 +1,4 @@ node_js: - - 12 - - 13 - 14 + - 13 + - 12 diff --git a/all/gte-13.yml b/all/gte-13.yml index 96d18b2..ccf3c6a 100644 --- a/all/gte-13.yml +++ b/all/gte-13.yml @@ -1,3 +1,3 @@ node_js: - - 13 - 14 + - 13 diff --git a/all/gte-4.yml b/all/gte-4.yml index 617229f..360fa4e 100644 --- a/all/gte-4.yml +++ b/all/gte-4.yml @@ -1,12 +1,12 @@ node_js: - - 4 - - 5 - - 6 - - 7 - - 8 - - 9 - - 10 - - 11 - - 12 - - 13 - 14 + - 13 + - 12 + - 11 + - 10 + - 9 + - 8 + - 7 + - 6 + - 5 + - 4 diff --git a/all/gte-5.yml b/all/gte-5.yml index 49a8fd4..9695480 100644 --- a/all/gte-5.yml +++ b/all/gte-5.yml @@ -1,11 +1,11 @@ node_js: - - 5 - - 6 - - 7 - - 8 - - 9 - - 10 - - 11 - - 12 - - 13 - 14 + - 13 + - 12 + - 11 + - 10 + - 9 + - 8 + - 7 + - 6 + - 5 diff --git a/all/gte-6.yml b/all/gte-6.yml index a773040..88c6366 100644 --- a/all/gte-6.yml +++ b/all/gte-6.yml @@ -1,10 +1,10 @@ node_js: - - 6 - - 7 - - 8 - - 9 - - 10 - - 11 - - 12 - - 13 - 14 + - 13 + - 12 + - 11 + - 10 + - 9 + - 8 + - 7 + - 6 diff --git a/all/gte-7.yml b/all/gte-7.yml index 4cd1695..271d2d2 100644 --- a/all/gte-7.yml +++ b/all/gte-7.yml @@ -1,9 +1,9 @@ node_js: - - 7 - - 8 - - 9 - - 10 - - 11 - - 12 - - 13 - 14 + - 13 + - 12 + - 11 + - 10 + - 9 + - 8 + - 7 diff --git a/all/gte-8.yml b/all/gte-8.yml index d1f2471..e8b9def 100644 --- a/all/gte-8.yml +++ b/all/gte-8.yml @@ -1,8 +1,8 @@ node_js: - - 8 - - 9 - - 10 - - 11 - - 12 - - 13 - 14 + - 13 + - 12 + - 11 + - 10 + - 9 + - 8 diff --git a/all/gte-9.yml b/all/gte-9.yml index f3028e0..64b7c62 100644 --- a/all/gte-9.yml +++ b/all/gte-9.yml @@ -1,7 +1,7 @@ node_js: - - 9 - - 10 - - 11 - - 12 - - 13 - 14 + - 13 + - 12 + - 11 + - 10 + - 9 diff --git a/lts/gte-10.yml b/lts/gte-10.yml index 259dcf7..b5fd230 100644 --- a/lts/gte-10.yml +++ b/lts/gte-10.yml @@ -1,4 +1,4 @@ node_js: - - 10 - - 12 - 14 + - 12 + - 10 diff --git a/lts/gte-12.yml b/lts/gte-12.yml index 2ae3243..e91321a 100644 --- a/lts/gte-12.yml +++ b/lts/gte-12.yml @@ -1,3 +1,3 @@ node_js: - - 12 - 14 + - 12 diff --git a/lts/gte-4.yml b/lts/gte-4.yml index 87aa45c..75d40e5 100644 --- a/lts/gte-4.yml +++ b/lts/gte-4.yml @@ -1,7 +1,7 @@ node_js: - - 4 - - 6 - - 8 - - 10 - - 12 - 14 + - 12 + - 10 + - 8 + - 6 + - 4 diff --git a/lts/gte-6.yml b/lts/gte-6.yml index 5609752..7c854d7 100644 --- a/lts/gte-6.yml +++ b/lts/gte-6.yml @@ -1,6 +1,6 @@ node_js: - - 6 - - 8 - - 10 - - 12 - 14 + - 12 + - 10 + - 8 + - 6 diff --git a/lts/gte-8.yml b/lts/gte-8.yml index 30e72b7..68b7db2 100644 --- a/lts/gte-8.yml +++ b/lts/gte-8.yml @@ -1,5 +1,5 @@ node_js: - - 8 - - 10 - - 12 - 14 + - 12 + - 10 + - 8 diff --git a/lts/strict/gte-10.yml b/lts/strict/gte-10.yml index b731f13..0e25cdd 100644 --- a/lts/strict/gte-10.yml +++ b/lts/strict/gte-10.yml @@ -1,3 +1,3 @@ node_js: - - 10 - 12 + - 10 diff --git a/lts/strict/gte-4.yml b/lts/strict/gte-4.yml index f05f4fd..7182db4 100644 --- a/lts/strict/gte-4.yml +++ b/lts/strict/gte-4.yml @@ -1,6 +1,6 @@ node_js: - - 4 - - 6 - - 8 - - 10 - 12 + - 10 + - 8 + - 6 + - 4 diff --git a/lts/strict/gte-6.yml b/lts/strict/gte-6.yml index 386172a..b2af8ba 100644 --- a/lts/strict/gte-6.yml +++ b/lts/strict/gte-6.yml @@ -1,5 +1,5 @@ node_js: - - 6 - - 8 - - 10 - 12 + - 10 + - 8 + - 6 diff --git a/lts/strict/gte-8.yml b/lts/strict/gte-8.yml index ab2ee39..eee009f 100644 --- a/lts/strict/gte-8.yml +++ b/lts/strict/gte-8.yml @@ -1,4 +1,4 @@ node_js: - - 8 - - 10 - 12 + - 10 + - 8