Skip to content

Commit 42c485b

Browse files
committed
Trying to start server in before_install
1 parent 3a96500 commit 42c485b

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@ language: node_js
33
before_install:
44
- sudo apt-get update
55
- sudo apt-get install imagemagick graphicsmagick libcairo2-dev
6+
- bundle install
7+
- bundle exec rackup -p 8001 > /dev/null &
68
- wget http://www.browserstack.com/browserstack-local/BrowserStackLocal-linux-x64.zip
79
- unzip BrowserStackLocal-linux-x64.zip
8-
- ./BrowserStackLocal $BROWSERSTACK_KEY localhost,8982,0 > /dev/null &
10+
- ./BrowserStackLocal $BROWSERSTACK_KEY localhost,8001,0 > /dev/null &
911
- sleep 10
1012

1113

Gruntfile.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module.exports = function(grunt) {
44
grunt.initConfig({
55
'http-server': {
66
dev: {
7-
port: 8982,
7+
port: 8001,
88
runInBackground: true
99
}
1010
},
@@ -18,5 +18,7 @@ module.exports = function(grunt) {
1818

1919
require('load-grunt-tasks')(grunt);
2020

21-
grunt.registerTask('test', ['http-server:dev', 'execute']);
21+
grunt.registerTask('serve', ['http-server:dev', 'execute']);
22+
grunt.registerTask('test', ['execute']);
23+
2224
};

config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ var Config = {
1212
browserstackKey: process.env.BROWSERSTACK_KEY,
1313
screenshotRoot: path.join(__dirname, 'screenshots', browser),
1414
api: 'https://visualdiff.ngrok.com/api/',
15-
websiteUrl: 'http://localhost:8982'
15+
websiteUrl: 'http://0.0.0.0:8001'
1616
};
1717

1818
module.exports = Config;

0 commit comments

Comments
 (0)