Skip to content

Commit d9527b3

Browse files
author
刘祺
committed
Add CI build config for node stable version
1 parent 239c5ad commit d9527b3

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

.travis.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,19 @@ sudo: false
1313

1414
env:
1515
matrix:
16-
- export NODE_VERSION="6.5" TARGET_ARCH="x64"
16+
- export NODE_VERSION="stable" TARGET_ARCH="x64"
1717
- export NODE_VERSION="7.4" TARGET_ARCH="x64"
18+
- export NODE_VERSION="6.5" TARGET_ARCH="x64"
1819

1920
matrix:
2021
fast_finish: true
2122
include:
2223
- os: linux
23-
env: export NODE_VERSION="6.5" TARGET_ARCH="ia32"
24+
env: export NODE_VERSION="stable" TARGET_ARCH="ia32"
2425
- os: linux
2526
env: export NODE_VERSION="7.4" TARGET_ARCH="ia32"
27+
- os: linux
28+
env: export NODE_VERSION="6.5" TARGET_ARCH="ia32"
2629

2730
git:
2831
depth: 1
@@ -63,7 +66,7 @@ before_install:
6366
fi
6467

6568
install:
66-
- npm install;
69+
- travis_retry npm install;
6770

6871
# This is a random private key used purely for testing.
6972
before_script:
@@ -78,9 +81,9 @@ before_script:
7881

7982
script:
8083
if [ -z "$TRAVIS_TAG" ] && [ $TRAVIS_OS_NAME == "linux" ] && [ $NODE_VERSION == "6" ]; then
81-
npm test && npm run cov && npm run coveralls;
84+
travis_retry npm test && npm run cov && npm run coveralls;
8285
else
83-
npm test;
86+
travis_retry npm test;
8487
fi
8588

8689
after_success:

appveyor.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@ environment:
2727
GYP_MSVS_VERSION: 2013
2828
matrix:
2929
# Node.js
30-
- nodejs_version: "6"
30+
- nodejs_version: "stable"
3131
- nodejs_version: "7"
32+
- nodejs_version: "6"
3233

3334
matrix:
3435
fast_finish: true
@@ -39,12 +40,12 @@ install:
3940
- ps: Start-Process c:\projects\nodegit\vendor\pageant.exe c:\projects\nodegit\vendor\private.ppk
4041
- npm install -g npm
4142
- cmd: npm install -g node-gyp
42-
- npm install
43+
- appveyor-retry call npm install
4344

4445
test_script:
4546
- node --version
4647
- npm --version
47-
- cmd: npm test
48+
- appveyor-retry call npm test
4849

4950
on_success:
5051
- IF %APPVEYOR_REPO_TAG%==true npm install -g node-pre-gyp

0 commit comments

Comments
 (0)