Skip to content

Instantly share code, notes, and snippets.

@dj-shin
Created October 23, 2017 10:08
Show Gist options
  • Save dj-shin/1664df414e2355a77f7f28d34f986b97 to your computer and use it in GitHub Desktop.
Save dj-shin/1664df414e2355a77f7f28d34f986b97 to your computer and use it in GitHub Desktop.
Travis configuration for Angular2
os:
- linux
services:
- docker
language: node_js
node_js:
- "8.4.0"
addons:
apt:
sources:
- google-chrome
packages:
- google-chrome-stable
cache:
yarn: true
directories:
- $HOME/.yarn-cache
- node_modules
before_install:
- export CHROME_BIN=/usr/bin/google-chrome
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
# Repo for Yarn
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH=$HOME/.yarn/bin:$PATH
- yarn global add @angular/cli
install:
- yarn install
- npm install coveralls
script:
- ng test --coverage --watch false
- ng e2e
after_success:
- cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment