Skip to content

Instantly share code, notes, and snippets.

@netstart
Created February 1, 2018 19:03
Show Gist options
  • Save netstart/67d4440a0b08813e140d11beda0414d6 to your computer and use it in GitHub Desktop.
Save netstart/67d4440a0b08813e140d11beda0414d6 to your computer and use it in GitHub Desktop.
Travis configuration to build angular project
language: node_js
sudo: required
node_js:
- node
before_script:
- "sudo chown root /opt/google/chrome/chrome-sandbox"
- "sudo chmod 4755 /opt/google/chrome/chrome-sandbox"
before_install:
- export CHROME_BIN=chromium-browser
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
script: # the build step
- node_modules/.bin/ng test --colors=false --progress=false --single-run
cache:
yarn: true
directories:
- ./node_modules
- ./.chrome/chromium
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment