Skip to content

Commit

Permalink
fix(ci): switch to modern .travis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
lidel committed Feb 25, 2019
1 parent 2cd1983 commit 972ab2e
Showing 1 changed file with 35 additions and 16 deletions.
51 changes: 35 additions & 16 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,42 @@

language: node_js
cache: npm
stages:
- check
- test
- cov

node_js:
- node
- '10'

os:
- linux
- osx

script: npx nyc -s npm run test:node -- --bail
after_success: npx nyc report --reporter=text-lcov > coverage.lcov && npx codecov

# Make sure we have new NPM.
before_install:
- npm install -g npm
jobs:
include:
- os: windows
cache: false

script:
- npm run lint
- npm test
- npm run coverage
- stage: check
script:
- npx aegir commitlint --travis
- npx aegir dep-check
- npm run lint

addons:
firefox: 'latest'
- stage: test
name: chrome
addons:
chrome: stable
script: npx aegir test -t browser -t webworker

before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- stage: test
name: firefox
addons:
firefox: latest
script: npx aegir test -t browser -t webworker -- --browsers FirefoxHeadless

after_success:
- npm run coverage-publish
notifications:
email: false

0 comments on commit 972ab2e

Please sign in to comment.