Skip to content

Commit

Permalink
Run integration tests on Travis if no SAUCE_ENABLED
Browse files Browse the repository at this point in the history
  • Loading branch information
tvararu committed May 15, 2017
1 parent 1c5079d commit 8f7de64
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
12 changes: 12 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
language: node_js
sudo: required
dist: trusty
node_js:
- stable
before_install:
- export CHROME_BIN=/usr/bin/google-chrome
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- sudo apt-get update
- sudo apt-get install -y libappindicator1 fonts-liberation
- wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
- sudo dpkg -i google-chrome*.deb
before_script:
- jdk_switcher use oraclejdk8
addons:
sauce_connect: true
env:
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ To run the functional tests in dev mode (automatically reruns when a file change
npm run karma:dev
```

To run the integration tests locally with Chrome and FireFox (specified in [wdio.config.js](test/wdio.config.js)):
To run the integration tests locally with Chrome (specified in [wdio.config.js](test/wdio.config.js)):

```bash
npm run wdio
Expand Down
4 changes: 2 additions & 2 deletions test/wdio.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ const sauceConfig = sauceEnabled
exports.config = Object.assign({
specs: ['./test/integration/**/*.js'],
capabilities: [
{ browserName: 'chrome' },
{ browserName: 'firefox' }
// { browserName: 'firefox' },
{ browserName: 'chrome' }
],
baseUrl: 'http://localhost:' + staticServerPort,
screenshotPath: './screenshots/',
Expand Down

0 comments on commit 8f7de64

Please sign in to comment.