-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #115 from amplitude/use-sauce-tests
Run tests through sauce VM
- Loading branch information
Showing
1 changed file
with
1 addition
and
16 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,22 +1,7 @@ | ||
machine: | ||
node: | ||
version: 6.11.0 | ||
dependencies: | ||
post: | ||
- wget https://saucelabs.com/downloads/sc-latest-linux.tar.gz | ||
- tar -xzf sc-latest-linux.tar.gz | ||
|
||
test: | ||
override: | ||
- 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 | ||
- python -m hello.hello_app: | ||
background: true | ||
# Wait for app to be ready | ||
- wget --retry-connrefused --no-check-certificate -T 30 http://localhost:5000 | ||
# Run selenium tests | ||
- nosetests | ||
post: | ||
- killall --wait sc # wait for Sauce Connect to close the tunnel | ||
- make test-sauce |