File tree Expand file tree Collapse file tree 2 files changed +37
-17
lines changed Expand file tree Collapse file tree 2 files changed +37
-17
lines changed Original file line number Diff line number Diff line change 1- language : node_js
2- node_js :
3- - " 0.10 "
4- - " 0.12 "
5- - " 4 "
6- - " 6 "
7- - " 8 "
8- env :
9- - UGLIFYJS_TEST_ALL=1
1+ addons :
2+ apt :
3+ sources :
4+ - ubuntu-toolchain-r-test
5+ packages :
6+ - libstdc++-4.9-dev
7+ cache :
8+ directories : tmp
9+ language : generic
1010matrix :
1111 fast_finish : true
1212sudo : false
13- cache :
14- directories : tmp
13+ env :
14+ global :
15+ - UGLIFYJS_TEST_ALL=1
16+ matrix :
17+ - NODEJS_VER=chakracore/latest
18+ - NODEJS_VER=node/0.10
19+ - NODEJS_VER=node/0.12
20+ - NODEJS_VER=node/4
21+ - NODEJS_VER=node/6
22+ - NODEJS_VER=node/8
23+ - NODEJS_VER=node/latest
24+ before_install :
25+ - git clone --branch v1.4.2 --depth 1 https://github.com/jasongin/nvs.git ~/.nvs
26+ - . ~/.nvs/nvs.sh
27+ - nvs --version
28+ install :
29+ - nvs add $NODEJS_VER
30+ - nvs use $NODEJS_VER
31+ - node --version
32+ - npm --version --no-update-notifier
33+ - npm install --no-optional --no-save --no-update-notifier
34+ script :
35+ - npm test --no-update-notifier
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ if (process.argv[2] == "run") {
1515 var branch = process . argv [ 3 ] || "v" + require ( "../package.json" ) . version ;
1616 var repository = encodeURIComponent ( process . argv [ 4 ] || "mishoo/UglifyJS2" ) ;
1717 var concurrency = process . argv [ 5 ] || 1 ;
18+ var platform = process . argv [ 6 ] || "node/latest" ;
1819 ( function request ( ) {
1920 setTimeout ( request , ( period + wait ) / concurrency ) ;
2021 var options = url . parse ( "https://api.travis-ci.org/repo/" + repository + "/requests" ) ;
@@ -32,20 +33,18 @@ if (process.argv[2] == "run") {
3233 res . on ( "data" , console . log ) ;
3334 } ) . on ( "error" , console . error ) . end ( JSON . stringify ( {
3435 request : {
35- message : "ufuzz testing (when idle) " ,
36+ message : "ufuzz testing" ,
3637 branch : branch ,
3738 config : {
38- merge_mode : "replace" ,
39- language : "node_js" ,
40- node_js : "9" ,
41- sudo : false ,
39+ cache : false ,
40+ env : "NODEJS_VER=" + platform ,
4241 script : "node test/travis-ufuzz run"
4342 }
4443 }
4544 } ) ) ;
4645 } ) ( ) ;
4746} else {
48- console . log ( "Usage: test/travis-ufuzz.js <token> [branch] [repository] [concurrency]" ) ;
47+ console . log ( "Usage: test/travis-ufuzz.js <token> [branch] [repository] [concurrency] [platform] " ) ;
4948}
5049
5150function spawn ( endTime ) {
You can’t perform that action at this time.
0 commit comments