Skip to content

Commit

Permalink
Merge pull request #115 from amplitude/use-sauce-tests
Browse files Browse the repository at this point in the history
Run tests through sauce VM
  • Loading branch information
blazzy authored Sep 7, 2017
2 parents af28eb7 + 5a017a8 commit 81582c4
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions circle.yml
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

0 comments on commit 81582c4

Please sign in to comment.