File tree Expand file tree Collapse file tree 6 files changed +61
-34
lines changed Expand file tree Collapse file tree 6 files changed +61
-34
lines changed Original file line number Diff line number Diff line change
1
+ sudo : false
2
+ bundler_args : --retry 3
1
3
language : node_js
2
4
node_js :
3
- - " 0.12"
4
- install : npm install
5
- before_script : npm install -g grunt-cli && webdriver-manager update
5
+ - 0.12
6
+ cache :
7
+ directories :
8
+ - node_modules/
9
+ install :
10
+ - npm set progress=false
11
+ - travis_retry npm install
12
+ before_script :
13
+ - npm install -g grunt-cli
14
+ script :
15
+ - node_modules/grunt-protractor-runner/node_modules/.bin/webdriver-manager update
16
+ - npm test
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ module.exports = function(grunt) {
6
6
options : {
7
7
jshintrc : '.jshintrc' ,
8
8
} ,
9
- files : [ 'lib/**/*.js' ]
9
+ files : [ 'lib/**/*.js' ]
10
10
} ,
11
11
jasmine_node : {
12
12
options : {
@@ -18,7 +18,7 @@ module.exports = function(grunt) {
18
18
connect : {
19
19
example : {
20
20
options : {
21
- base : 'example'
21
+ base : 'example'
22
22
}
23
23
} ,
24
24
'client-test' : {
@@ -29,7 +29,7 @@ module.exports = function(grunt) {
29
29
} ,
30
30
protractor : {
31
31
options : {
32
- configFile : 'example/protractor. conf' ,
32
+ configFile : 'example/protractor- conf.js ' ,
33
33
//debug: true
34
34
} ,
35
35
example : { }
Original file line number Diff line number Diff line change
1
+ var config = {
2
+ baseUrl : 'http://localhost:8000/' ,
3
+ specs : [
4
+ 'spec/*.spec.js'
5
+ ] ,
6
+ mocks : {
7
+ dir : 'mocks' ,
8
+ default : [ 'default' ]
9
+ } ,
10
+ onPrepare : function ( ) {
11
+ require ( '../index' ) . config = {
12
+ rootDirectory : __dirname
13
+ }
14
+ }
15
+ } ;
16
+
17
+ if ( process . env . TRAVIS ) {
18
+ //Run PhantomJS on Travis
19
+ config . capabilities = {
20
+ browserName : 'phantomjs' ,
21
+ 'phantomjs.binary.path' : require ( 'phantomjs' ) . path ,
22
+ 'phantomjs.ghostdriver.cli.args' : [ '--loglevel=DEBUG' ] ,
23
+ shardTestFiles : true ,
24
+ maxInstances : 2
25
+ } ;
26
+ } else {
27
+ config . capabilities = {
28
+ browserName : 'chrome'
29
+ }
30
+ config . chromeDriver = '../node_modules/protractor/selenium/chromedriver' ;
31
+ }
32
+ exports . config = config ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
module . exports = {
2
- moduleConfig : {
3
- rootDirectory : process . cwd ( ) ,
4
- protractorConfig : 'protractor. conf'
5
- } ,
6
- mocksConfig : {
7
- dir : 'mocks' ,
8
- defaults : [ ]
9
- }
2
+ moduleConfig : {
3
+ rootDirectory : process . cwd ( ) ,
4
+ protractorConfig : 'protractor- conf.js'
5
+ } ,
6
+ mocksConfig : {
7
+ dir : 'mocks' ,
8
+ defaults : [ ]
9
+ }
10
10
} ;
Original file line number Diff line number Diff line change 4
4
"description" : " Mock HTTP calls in your protractor specs." ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
7
- "example" : " grunt example"
7
+ "example" : " grunt example" ,
8
+ "test" : " node_modules/.bin/grunt verify"
8
9
},
9
10
"author" : " Carlos Atencio" ,
10
11
"license" : " BSD-2-Clause" ,
16
17
"grunt-contrib-jshint" : " ~0.10.0" ,
17
18
"grunt-jasmine-node" : " ~0.2.1" ,
18
19
"grunt-protractor-runner" : " ^1.1.4" ,
19
- "protractor" : " ~1.5.0"
20
+ "phantomjs" : " 2.1.3" ,
21
+ "protractor" : " 2.5.1"
20
22
},
21
23
"repository" : {
22
24
"type" : " git" ,
23
25
"url" : " https://github.com/atecarlos/protractor-http-mock"
24
26
},
25
27
"dependencies" : {
26
28
"query-string" : " ^1.0.0"
27
- },
28
- "scripts" : {
29
- "test" : " node_modules/.bin/grunt verify"
30
29
}
31
30
}
You can’t perform that action at this time.
0 commit comments