Feb 25, 2017 · 1 min read
Thanks for the complete script.
The article uses the deprecated npm package of Angular CLI, see the updated .travis.ymlbelow. The new package requires higher node version. Additionally, if haveyarn.lock file in your repository, you can install packages with yarn (= faster build). Using ng test was suggested in another comment.
sudo: required
dist: trusty
language: node_js
node_js:
- '7.0.0'addons:
apt:
sources:
- google-chrome
packages:
- google-chrome-stable
- google-chrome-betabefore_install:
- export CHROME_BIN=chromium-browser
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb startbefore_script:
- npm install -g @angular/cli
- yarn install
- ng build
