2019-04-15 17:44:04 +01:00
|
|
|
language: node_js
|
|
|
|
cache: npm
|
2019-09-30 13:08:57 +02:00
|
|
|
sudo: false
|
|
|
|
|
2019-04-15 17:44:04 +01:00
|
|
|
stages:
|
|
|
|
- check
|
|
|
|
- test
|
|
|
|
- cov
|
|
|
|
|
|
|
|
node_js:
|
|
|
|
- '10'
|
2019-09-30 13:08:57 +02:00
|
|
|
- '12'
|
|
|
|
|
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
- osx
|
|
|
|
- windows
|
|
|
|
|
|
|
|
before_script:
|
|
|
|
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo sh -c 'echo 0 > /proc/sys/net/ipv6/conf/all/disable_ipv6'; fi
|
2019-04-15 17:44:04 +01:00
|
|
|
|
|
|
|
script: npx nyc -s npm run test:node -- --bail
|
|
|
|
after_success: npx nyc report --reporter=text-lcov > coverage.lcov && npx codecov
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
include:
|
|
|
|
- stage: check
|
|
|
|
script:
|
2019-09-30 12:14:28 +02:00
|
|
|
- npx aegir build --bundlesize
|
2019-09-30 13:08:57 +02:00
|
|
|
- npx aegir dep-check
|
2019-04-15 17:44:04 +01:00
|
|
|
- npm run lint
|
|
|
|
|
|
|
|
- stage: test
|
|
|
|
name: chrome
|
|
|
|
addons:
|
|
|
|
chrome: stable
|
|
|
|
script:
|
|
|
|
- npx aegir test -t browser
|
|
|
|
|
|
|
|
- stage: test
|
|
|
|
name: firefox
|
|
|
|
addons:
|
|
|
|
firefox: latest
|
|
|
|
script:
|
|
|
|
- npx aegir test -t browser -- --browsers FirefoxHeadless
|
|
|
|
|
|
|
|
notifications:
|
|
|
|
email: false
|