Skip to content

Instantly share code, notes, and snippets.

@richtera
Created October 23, 2015 15:06
Show Gist options
  • Save richtera/f531668d93c3e0ae946e to your computer and use it in GitHub Desktop.
Save richtera/f531668d93c3e0ae946e to your computer and use it in GitHub Desktop.
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