sudo: false
language: node_js
cache:
  directories:
    - node_modules
    - sample/node_modules
branches:
  only:
    - master
notifications:
  email: false
node_js:
  - '6'
before_install:
  - npm i -g npm
  - npm i -g @angular/cli
#  - printf "//registry.npmjs.org/:_authToken=${NPM_TOKEN}\n" >> .npmrc
before_script:
  - npm prune
script:
  - npm run build
  - cd sample
  - npm install
  - npm run test
after_success:
  - cd ..
  - npm run semantic-release

sudo: false
language: node_js
cache:
  directories:
    - node_modules
    - sample/node_modules
branches:
  only:
    - master
notifications:
  email: false
node_js:
  - '6'
before_install:
#  - npm i -g npm
  - npm i -g @angular/cli
#  - printf "//registry.npmjs.org/:_authToken=${NPM_TOKEN}\n" >> .npmrc
before_script:
  - npm prune
script:
  - npm run build
  - cd sample
  - npm install
  - npm run test
after_success:
  - cd ..
  - npm run semantic-release

Remove the step of updating Node during the Travis build. The build environment is already at
build: Remove the step of updating Node during the Travis build. The build environment is already at
