File tree 4 files changed +36
-2
lines changed
4 files changed +36
-2
lines changed Original file line number Diff line number Diff line change 26
26
- run :
27
27
name : Test
28
28
command : npm test
29
+ - run :
30
+ name : Integration
31
+ command : npm run wdio-ci
29
32
30
33
node-v6 :
31
34
<< : *node-base
Original file line number Diff line number Diff line change 13
13
"compile" : " tsc" ,
14
14
"lint" : " tslint -p tsconfig.json" ,
15
15
"test" : " jasmine-ts \" src/**/*.spec.ts\" " ,
16
- "wdio-local" : " wdio test/wdio.local.conf.js"
16
+ "wdio-local" : " wdio test/wdio.local.conf.js" ,
17
+ "wdio-ci" : " wdio test/wdio.ci.conf.js"
17
18
},
18
19
"repository" : {
19
20
"type" : " git" ,
55
56
"tslint-eslint-rules" : " 5.3.1" ,
56
57
"typescript" : " 2.9.2" ,
57
58
"vrsource-tslint-rules" : " 5.8.2" ,
59
+ "wdio-sauce-service" : " 0.4.10" ,
58
60
"wdio-cucumber-framework" : " 1.1.0" ,
59
61
"webdriverio" : " 4.13.1"
60
62
},
Original file line number Diff line number Diff line change 47
47
const expected = fs . readFileSync ( path . join ( __dirname , '..' , responses . getItems [ scenario ] . file ) ) ;
48
48
return actual . equals ( expected ) ;
49
49
} else {
50
- return browser . params . environment === 'TRAVIS '
50
+ return browser . params . environment === 'CI '
51
51
}
52
52
} , 5000 , 'expected download to be completed' ) ;
53
53
}
Original file line number Diff line number Diff line change
1
+ const config = require ( './wdio.conf' ) . config ;
2
+
3
+ config . params = {
4
+ environment : 'CI' ,
5
+ default_directory : '/tmp'
6
+ } ;
7
+
8
+ config . services = [ 'sauce' ] ;
9
+ config . user = process . env . SAUCE_USERNAME ;
10
+ config . key = process . env . SAUCE_ACCESS_KEY ;
11
+
12
+ config . capabilities = [ {
13
+ browserName : 'chrome' ,
14
+ name : 'ngApimock - webdriverio' ,
15
+ 'tunnel-identifier' : process . env . TRAVIS_JOB_NUMBER ,
16
+ build : process . env . TRAVIS_BUILD_NUMBER ,
17
+ chromeOptions : {
18
+ args : [ '--no-sandbox' , '--test-type=browser' ] ,
19
+ prefs : {
20
+ 'download' : {
21
+ 'prompt_for_download' : false ,
22
+ 'directory_upgrade' : true ,
23
+ 'default_directory' : '/tmp'
24
+ }
25
+ }
26
+ }
27
+ } ] ;
28
+
29
+ exports . config = config ;
You can’t perform that action at this time.
0 commit comments