Skip to content

Commit

Permalink
download and start the sauce connector in travis
Browse files Browse the repository at this point in the history
  • Loading branch information
Pita committed Oct 28, 2012
1 parent 7903eb9 commit c021cf5
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@ language: node_js
node_js:
- "0.8"
install:
- bin/installDeps.sh
- "bin/installDeps.sh"
before_script:
- "tests/frontend/travis/sauce_tunnel.sh"
env:
global:
- secure: zGX8AFKQnuh6WWLJw58WnRZiVQ4dIbN0gIQ0NpJIKmzQw2yQ+rqQEo2UoT5p\n+SSX/DJnU0yZzZ2RkiN8sabyY3e3Y2JhjO5GUTdoUxxB7ffCDLM4W1T8ckyl\nmSUW/ajrxMbGxruYbKQfepCRK6w4OoUsROYI0MpeoDo8ngxmcFw="
- SAUCE_USER: pita

notifications:
email:
- [email protected]
11 changes: 11 additions & 0 deletions tests/frontend/travis/sauce_tunnel.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash
#download and unzip the sauce connector
curl http://saucelabs.com/downloads/Sauce-Connect-latest.zip > /tmp/sauce.zip
unzip /tmp/sauce.zip -d /tmp

#start the sauce connector in background and make sure it doesn't output the secret key
java -jar /tmp/Sauce-Connect.jar $SAUCE_USER $SAUCE_KEY & | grep -v $SAUCE_KEY

#save the sauce pid in a file and give it a bit of time to connect
echo $! > /tmp/sauce.pid
wait 30

0 comments on commit c021cf5

Please sign in to comment.