Created
October 23, 2015 15:06
-
-
Save richtera/f531668d93c3e0ae946e to your computer and use it in GitHub Desktop.
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
language: node_js | |
node_js: | |
- '0.12' | |
script: | |
- npm install | |
- export DISPLAY=:99.0 | |
- sh -e /etc/init.d/xvfb start | |
- nohup bash -c "./node_modules/protractor/bin/webdriver-manager start 2>&1 &" | |
- sleep 5 | |
- "./node_modules/.bin/webdriver-manager update" | |
- "./node_modules/.bin/protractor protractor/conf.js; export STATUS=$?" | |
- if [[ "$STATUS" != "0" ]]; then echo "Error during testing skipping deployment."; fi | |
- if [[ "$STATUS" == "0" && "$TRAVIS_PULL_REQUEST" == "false" ]]; then ./execDeploy.sh; fi | |
- exit $STATUS | |
cache: | |
directories: | |
- node_modules | |
- "$HOME/.npm" | |
- ".divshot-cache" | |
- "$HOME/.nvm" | |
notifications: | |
slack: | |
secure: ".... stripped ...." | |
sudo: false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment