Skip to content

Commit 13a705d

Browse files
authored
Merge pull request #50 from pkgjs/travisimo
2 parents 072756d + 76fcb68 commit 13a705d

File tree

4 files changed

+21
-15
lines changed

4 files changed

+21
-15
lines changed

.travis.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
language: node_js
2-
sudo: false
32

4-
node_js:
5-
- "10"
6-
- "12"
7-
- "14"
3+
import:
4+
- nodejs/ci-config-travis:lts/gte-10.yml
85

96
cache:
107
npm: false

test/fixtures/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,11 @@ module.exports = class TestContext {
7070
.get('/dist/index.json')
7171
.reply(200, Fs.readFileSync(Path.join(__dirname, 'node-release-dist.json')));
7272

73+
Nock('https://raw.githubusercontent.com')
74+
.persist()
75+
.get('/nodejs/ci-config-travis/HEAD/lts/gte-10.yml')
76+
.reply(200, Fs.readFileSync(Path.join(__dirname, 'travis-ymls', 'nodejs-ci-config-travis-gte-10.yml')));
77+
7378
this._cleanup.push(() => {
7479

7580
Nock.restore();
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_js:
2+
- 14
3+
- 12
4+
- 10

test/index.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ describe('detect-node-support', () => {
5555
version: '0.0.0-development',
5656
timestamp: 1580673602000,
5757
travis: {
58-
raw: ['10', '12', '14'],
58+
raw: ['14', '12', '10'],
5959
resolved: {
6060
'10': '10.20.1',
6161
'12': '12.17.0',
@@ -443,7 +443,7 @@ describe('detect-node-support', () => {
443443
commit: '9cef39d21ad229dea4b10295f55b0d9a83800b23',
444444
timestamp: 1580673602000,
445445
travis: {
446-
raw: ['10', '12', '14'],
446+
raw: ['14', '12', '10'],
447447
resolved: {
448448
'10': '10.20.1',
449449
'12': '12.17.0',
@@ -476,7 +476,7 @@ describe('detect-node-support', () => {
476476
commit: '9cef39d21ad229dea4b10295f55b0d9a83800b23',
477477
timestamp: 1580673602000,
478478
travis: {
479-
raw: ['10', '12', '14'],
479+
raw: ['14', '12', '10'],
480480
resolved: {
481481
'10': '10.20.1',
482482
'12': '12.17.0',
@@ -599,7 +599,7 @@ describe('detect-node-support', () => {
599599
commit: '9cef39d21ad229dea4b10295f55b0d9a83800b23',
600600
timestamp: 1580673602000,
601601
travis: {
602-
raw: ['10', '12', '14'],
602+
raw: ['14', '12', '10'],
603603
resolved: {
604604
'10': '10.20.1',
605605
'12': '12.17.0',
@@ -722,7 +722,7 @@ describe('detect-node-support', () => {
722722
commit: '9cef39d21ad229dea4b10295f55b0d9a83800b23',
723723
timestamp: 1580673602000,
724724
travis: {
725-
raw: ['10', '12', '14'],
725+
raw: ['14', '12', '10'],
726726
resolved: {
727727
'10': '10.20.1',
728728
'12': '12.17.0',
@@ -768,7 +768,7 @@ describe('detect-node-support', () => {
768768
version: '0.0.0-development',
769769
timestamp: 1580673602000,
770770
travis: {
771-
raw: ['10', '12', '14'],
771+
raw: ['14', '12', '10'],
772772
resolved: {
773773
'10': '10.20.1',
774774
'12': '12.17.0',
@@ -801,7 +801,7 @@ describe('detect-node-support', () => {
801801
commit: '9cef39d21ad229dea4b10295f55b0d9a83800b23',
802802
timestamp: 1580673602000,
803803
travis: {
804-
raw: ['10', '12', '14'],
804+
raw: ['14', '12', '10'],
805805
resolved: {
806806
'10': '10.20.1',
807807
'12': '12.17.0',
@@ -834,7 +834,7 @@ describe('detect-node-support', () => {
834834
commit: '9cef39d21ad229dea4b10295f55b0d9a83800b23',
835835
timestamp: 1580673602000,
836836
travis: {
837-
raw: ['10', '12', '14'],
837+
raw: ['14', '12', '10'],
838838
resolved: {
839839
'10': '10.20.1',
840840
'12': '12.17.0',
@@ -871,7 +871,7 @@ describe('detect-node-support', () => {
871871
commit: '9cef39d21ad229dea4b10295f55b0d9a83800b23',
872872
timestamp: 1580673602000,
873873
travis: {
874-
raw: ['10', '12', '14'],
874+
raw: ['14', '12', '10'],
875875
resolved: {
876876
'10': '10.20.1',
877877
'12': '12.17.0',
@@ -908,7 +908,7 @@ describe('detect-node-support', () => {
908908
commit: '9cef39d21ad229dea4b10295f55b0d9a83800b23',
909909
timestamp: 1580673602000,
910910
travis: {
911-
raw: ['10', '12', '14'],
911+
raw: ['14', '12', '10'],
912912
resolved: {
913913
'10': '10.20.1',
914914
'12': '12.17.0',

0 commit comments

Comments
 (0)