File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -55,8 +55,7 @@ before_script:
55
55
- bundle exec rackup -p 9292 &
56
56
- sleep 10
57
57
- wget http://www.browserstack.com/BrowserStackTunnel.jar
58
- - java -jar BrowserStackTunnel.jar $BS_AUTHKEY localhost,9292,0 &
59
- # - java -jar BrowserStackTunnel.jar -tunnelIdentifier $TRAVIS_JOB_ID $BS_AUTHKEY localhost,9292,0 &
58
+ - java -jar BrowserStackTunnel.jar $BS_AUTHKEY localhost,9292,0 -tunnelIdentifier $TRAVIS_JOB_ID &
60
59
- sleep 10
61
60
62
61
script :
Original file line number Diff line number Diff line change 10
10
cap [ 'browser' ] = ENV [ 'SELENIUM_BROWSER' ] || 'chrome'
11
11
cap [ 'browser_version' ] = ENV [ 'SELENIUM_VERSION' ] if ENV [ 'SELENIUM_VERSION' ]
12
12
13
- cap [ 'browserstack.tunnel' ] = 'true'
14
- cap [ 'browserstack.debug' ] = 'true'
13
+ cap [ 'browserstack.tunnelIdentifier' ] = ENV [ 'TRAVIS_JOB_ID' ]
14
+ cap [ 'browserstack.tunnel' ] = 'true'
15
+ cap [ 'browserstack.debug' ] = 'false'
15
16
16
17
print 'Loading...'
17
18
35
36
end
36
37
37
38
unless ( browser . find_element ( :css , '.rspec-report' ) rescue false )
38
- puts "\r Connection error.. ."
39
+ puts "\r The specs didn't load ."
39
40
browser . quit
40
- exit 0
41
+ exit 1
41
42
end
42
43
43
44
print "\r Running specs..."
You can’t perform that action at this time.
0 commit comments