Created
October 23, 2015 15:06
-
-
Save richtera/f531668d93c3e0ae946e to your computer and use it in GitHub Desktop.
Revisions
-
richtera created this gist
Oct 23, 2015 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,24 @@ 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