File tree Expand file tree Collapse file tree 5 files changed +32
-133
lines changed
Expand file tree Collapse file tree 5 files changed +32
-133
lines changed Original file line number Diff line number Diff line change 11language : node_js
22
3+ # https://github.com/nodejs/LTS
34node_js :
4- - " 7 "
5- - " 6 "
6- - " 5 "
7- - " 4 "
5+ - ' 9 '
6+ - ' 8 '
7+ - ' 6 '
8+ - ' 4 '
89
9- cache : yarn
10+ git :
11+ depth : 5
1012
11- before_install :
12- - npm config set spin false --global
13+ cache : yarn
1314
1415script :
15- - if [[ "$TRAVIS_JOB_NUMBER" == *.1 ]]; then npm run lint && npm run check && npm run cover:lcov; else npm run testonly; fi
16-
17- after_failure :
18- - (cd resources; python travis_after_all.py)
19-
20- after_success :
21- - (cd resources; python travis_after_all.py)
22- - export $(cat resources/.to_export_back)
23- - if [[ "$TRAVIS_JOB_NUMBER" == *.1 ]]; then cat ./coverage/lcov.info | ./node_modules/.bin/coveralls; fi
16+ - if [[ "$TRAVIS_JOB_NUMBER" == *.1 ]]; then npm run test:ci; else npm run testonly; fi
2417
25- deploy :
26- provider : npm
27- email : " lee@leebyron.com"
28- api_key :
29- secure : " LKgxA5+LSG1TPLlpE5mS4DGfirzBjNKO3UhDptXSXYR78QTs/lS0YlYKkNq/lCeTEMGKAgi9edVQfnsruKAsjiT4naZz/ZoSAzonRedO6ynHng+ec4WszJVew0xDPK1hJ2Gy+RdSyzRxGZUn6RDBZZR3Bj412azgwrgGf8x/HY6qBmVP9JZKPlpuRHM/lEL2IiKtJict7sFel0MH01t7n1rzsriUviPYsh6XElqLqSdeVe54iMu7PNp1A6p8hgt+I6IOree2km5TVC/MYn9iOIIK4kC6b+QCcE3jUOWioRIrQkI3DoN9QrxqeeOpx+i4ozsvjYcsl9b9TI6n66wNxkXJsDVRXA3oQ/0YjVlY4tznC/+3CI49gtLiKVeos2LsIdP6Xnnx7VvMOPvjEbl4386wLZAhbbc0VxjWilyVRJeErGsQvrujY/0JZwhxsXDAtGzqFXkiV7tTin+wivUgGW1VNf81q3ANOr8TG91yZMeYeRwTlECN0jQaFqNvagc8/Atp2akrbW4P46gh4+f/gp4hSLrYbjwybmZdM4zesHeBezA87PPIlm5INhe2Lgsgmw2Ipgn8x2cBzsHepbsfGcvxMxu4CAhPISRdB9nlnbZ6eEpU2o6caeJN/hjmiwDHOsSbCa2RxVbMPkxqjdGG6VJmUyDMFny7apzNAYSiIJ0="
30- on :
31- tags : true
32- branch : master
33- condition : " $BUILD_LEADER$BUILD_AGGREGATE_STATUS = YESothers_succeeded"
18+ jobs :
19+ include :
20+ - stage : deploy
21+ if : branch = master AND tag IS present
22+ script : echo "Deploying..."
23+ node_js : ' 8'
24+ deploy :
25+ provider : npm
26+ skip_cleanup : true
27+ email : " lee@leebyron.com"
28+ api_key :
29+ secure : " LKgxA5+LSG1TPLlpE5mS4DGfirzBjNKO3UhDptXSXYR78QTs/lS0YlYKkNq/lCeTEMGKAgi9edVQfnsruKAsjiT4naZz/ZoSAzonRedO6ynHng+ec4WszJVew0xDPK1hJ2Gy+RdSyzRxGZUn6RDBZZR3Bj412azgwrgGf8x/HY6qBmVP9JZKPlpuRHM/lEL2IiKtJict7sFel0MH01t7n1rzsriUviPYsh6XElqLqSdeVe54iMu7PNp1A6p8hgt+I6IOree2km5TVC/MYn9iOIIK4kC6b+QCcE3jUOWioRIrQkI3DoN9QrxqeeOpx+i4ozsvjYcsl9b9TI6n66wNxkXJsDVRXA3oQ/0YjVlY4tznC/+3CI49gtLiKVeos2LsIdP6Xnnx7VvMOPvjEbl4386wLZAhbbc0VxjWilyVRJeErGsQvrujY/0JZwhxsXDAtGzqFXkiV7tTin+wivUgGW1VNf81q3ANOr8TG91yZMeYeRwTlECN0jQaFqNvagc8/Atp2akrbW4P46gh4+f/gp4hSLrYbjwybmZdM4zesHeBezA87PPIlm5INhe2Lgsgmw2Ipgn8x2cBzsHepbsfGcvxMxu4CAhPISRdB9nlnbZ6eEpU2o6caeJN/hjmiwDHOsSbCa2RxVbMPkxqjdGG6VJmUyDMFny7apzNAYSiIJ0="
30+ on :
31+ tags : true
32+ branch : master
Original file line number Diff line number Diff line change 6262 },
6363 "scripts" : {
6464 "test" : " npm run lint && npm run check && npm run testonly" ,
65- "testonly " : " babel-node ./node_modules/.bin/_mocha $npm_package_options_mocha " ,
65+ "test:ci " : " npm run lint && npm run check && npm run testonly:coveralls " ,
6666 "lint" : " eslint src" ,
6767 "check" : " flow check" ,
6868 "build" : " babel src --ignore __tests__ --out-dir dist/ ; cp src/index.js dist/index.js.flow ; cp src/index.d.ts dist/" ,
6969 "watch" : " babel resources/watch.js | node" ,
70- "cover" : " babel-node node_modules/.bin/isparta cover --root src --report html _mocha -- $npm_package_options_mocha" ,
71- "cover:lcov" : " babel-node node_modules/.bin/isparta cover --root src --report lcovonly _mocha -- $npm_package_options_mocha" ,
70+ "testonly" : " babel-node ./node_modules/.bin/_mocha $npm_package_options_mocha" ,
71+ "testonly:cover" : " babel-node node_modules/.bin/isparta cover --root src --report html _mocha -- $npm_package_options_mocha" ,
72+ "testonly:coveralls" : " babel-node node_modules/.bin/isparta cover --root src --report lcovonly _mocha -- $npm_package_options_mocha && cat ./coverage/lcov.info | coveralls" ,
7273 "preversion" : " . ./resources/checkgit.sh && npm test" ,
7374 "prepublish" : " . ./resources/prepublish.sh"
7475 },
Original file line number Diff line number Diff line change 11# Because of a long-running npm issue (https://github.com/npm/npm/issues/3059)
22# prepublish runs after `npm install` and `npm pack`.
33# In order to only run prepublish before `npm publish`, we have to check argv.
4- if node -e " process.exit(($npm_config_argv ).original[0].indexOf('pu') === 0)" ; then
4+ if node -e " process.exit(($npm_config_argv ).original.length > 0 && ( $npm_config_argv ).original [0].indexOf('pu') === 0)" ; then
55 exit 0;
66fi
77
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -1146,9 +1146,9 @@ flat-cache@^1.2.1:
11461146 graceful-fs "^4.1.2"
11471147 write "^0.2.1"
11481148
1149- flow-bin@0.32 .0 :
1150- version "0.32 .0"
1151- resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.32 .0.tgz#a1d69d153a07b0a9cd4a633d13bf746d4ace5730 "
1149+ flow-bin@0.53 .0 :
1150+ version "0.53 .0"
1151+ resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.53 .0.tgz#f7830e609ca02b12db4127114213cccc7c0771b9 "
11521152
11531153for-in@^1.0.1 :
11541154 version "1.0.2"
You can’t perform that action at this time.
0 commit comments