Skip to content

Commit

Permalink
feat: initial scaffold
Browse files Browse the repository at this point in the history
Signed-Off-By: Dominykas Blyžė <hello@dominykas.com>
  • Loading branch information
dominykas committed Jul 5, 2020
1 parent 1482e3a commit 35e0f05
Show file tree
Hide file tree
Showing 23 changed files with 166 additions and 2 deletions.
44 changes: 42 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
6 changes: 6 additions & 0 deletions all/gte-10.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
node_js:
- 10
- 11
- 12
- 13
- 14
5 changes: 5 additions & 0 deletions all/gte-11.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_js:
- 11
- 12
- 13
- 14
4 changes: 4 additions & 0 deletions all/gte-12.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_js:
- 12
- 13
- 14
3 changes: 3 additions & 0 deletions all/gte-13.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_js:
- 13
- 14
2 changes: 2 additions & 0 deletions all/gte-14.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_js:
- 14
12 changes: 12 additions & 0 deletions all/gte-4.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
node_js:
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
11 changes: 11 additions & 0 deletions all/gte-5.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
node_js:
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
10 changes: 10 additions & 0 deletions all/gte-6.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
node_js:
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
9 changes: 9 additions & 0 deletions all/gte-7.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
node_js:
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
8 changes: 8 additions & 0 deletions all/gte-8.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
node_js:
- 8
- 9
- 10
- 11
- 12
- 13
- 14
7 changes: 7 additions & 0 deletions all/gte-9.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
node_js:
- 9
- 10
- 11
- 12
- 13
- 14
4 changes: 4 additions & 0 deletions lts/gte-10.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_js:
- 10
- 12
- 14
3 changes: 3 additions & 0 deletions lts/gte-12.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_js:
- 12
- 14
2 changes: 2 additions & 0 deletions lts/gte-14.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_js:
- 14
7 changes: 7 additions & 0 deletions lts/gte-4.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
node_js:
- 4
- 6
- 8
- 10
- 12
- 14
6 changes: 6 additions & 0 deletions lts/gte-6.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
node_js:
- 6
- 8
- 10
- 12
- 14
5 changes: 5 additions & 0 deletions lts/gte-8.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_js:
- 8
- 10
- 12
- 14
3 changes: 3 additions & 0 deletions lts/strict/gte-10.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_js:
- 10
- 12
2 changes: 2 additions & 0 deletions lts/strict/gte-12.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_js:
- 12
6 changes: 6 additions & 0 deletions lts/strict/gte-4.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
node_js:
- 4
- 6
- 8
- 10
- 12
5 changes: 5 additions & 0 deletions lts/strict/gte-6.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_js:
- 6
- 8
- 10
- 12
4 changes: 4 additions & 0 deletions lts/strict/gte-8.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_js:
- 8
- 10
- 12

0 comments on commit 35e0f05

Please sign in to comment.