-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |