Skip to content

Instantly share code, notes, and snippets.

@richtera
Created October 23, 2015 15:06
Show Gist options
  • Select an option

  • Save richtera/f531668d93c3e0ae946e to your computer and use it in GitHub Desktop.

Select an option

Save richtera/f531668d93c3e0ae946e to your computer and use it in GitHub Desktop.

Revisions

  1. richtera created this gist Oct 23, 2015.
    24 changes: 24 additions & 0 deletions .travis.yml
    Original 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