Skip to content

Commit

Permalink
Run frontend tests on SauceLabs
Browse files Browse the repository at this point in the history
  • Loading branch information
ekmartin committed Jan 15, 2017
1 parent aa4dc3c commit ea1a573
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
dependencies:
post:
- wget https://saucelabs.com/downloads/sc-latest-linux.tar.gz
- tar -xzf sc-latest-linux.tar.gz

test:
override:
- npm run lint
- npm run mocha && ./node_modules/.bin/istanbul-coveralls
# Setup the SauceLabs bridge:
- cd sc-*-linux && ./bin/sc --user $SAUCE_USERNAME --api-key $SAUCE_ACCESS_KEY --readyfile ~/sauce_is_ready:
background: true
# Wait for tunnel to be ready:
- while [ ! -e ~/sauce_is_ready ]; do sleep 1; done
# Run the frontend tests:
- npm run protractor
post:
# Wait for Sauce Connect to close the tunnel:
- killall --wait sc

0 comments on commit ea1a573

Please sign in to comment.