File tree 2 files changed +37
-17
lines changed
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
10
10
matrix :
11
11
fast_finish : true
12
12
sudo : 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") {
15
15
var branch = process . argv [ 3 ] || "v" + require ( "../package.json" ) . version ;
16
16
var repository = encodeURIComponent ( process . argv [ 4 ] || "mishoo/UglifyJS2" ) ;
17
17
var concurrency = process . argv [ 5 ] || 1 ;
18
+ var platform = process . argv [ 6 ] || "node/latest" ;
18
19
( function request ( ) {
19
20
setTimeout ( request , ( period + wait ) / concurrency ) ;
20
21
var options = url . parse ( "https://api.travis-ci.org/repo/" + repository + "/requests" ) ;
@@ -32,20 +33,18 @@ if (process.argv[2] == "run") {
32
33
res . on ( "data" , console . log ) ;
33
34
} ) . on ( "error" , console . error ) . end ( JSON . stringify ( {
34
35
request : {
35
- message : "ufuzz testing (when idle) " ,
36
+ message : "ufuzz testing" ,
36
37
branch : branch ,
37
38
config : {
38
- merge_mode : "replace" ,
39
- language : "node_js" ,
40
- node_js : "9" ,
41
- sudo : false ,
39
+ cache : false ,
40
+ env : "NODEJS_VER=" + platform ,
42
41
script : "node test/travis-ufuzz run"
43
42
}
44
43
}
45
44
} ) ) ;
46
45
} ) ( ) ;
47
46
} 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] " ) ;
49
48
}
50
49
51
50
function spawn ( endTime ) {
You can’t perform that action at this time.
0 commit comments