Skip to content

Commit

Permalink
[ci] update test script
Browse files Browse the repository at this point in the history
* pin to defined distribution version
* fix required services
* fix wrong path to `ng`
  • Loading branch information
Rotzbua committed Feb 18, 2020
1 parent 25c6836 commit e666eba
Showing 1 changed file with 15 additions and 17 deletions.
32 changes: 15 additions & 17 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,21 @@
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"
dist: bionic

before_install:
- export CHROME_BIN=chromium-browser
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
services:
- xvfb # required for headless testing

script: # the build step
- node_modules/.bin/ng test --watch=false
node_js:
- lts/* # use lts version of node

addons:
chrome: stable

cache:
yarn: true
directories:
- ./node_modules
- ./.chrome/chromium
- npm

install:
- npm set progress=false
- npm install

script:
- ./node_modules/.bin/ng test --watch=false # run the test

0 comments on commit e666eba

Please sign in to comment.