js-libp2p-noise/.travis.yml
2020-06-23 12:00:01 +02:00

59 lines
1.1 KiB
YAML

language: node_js
cache: yarn
stages:
- check
- test
- cov
env:
- YARN_GPG=no
node_js:
- '12'
- '14'
os:
- linux
- osx
- windows
script: npx nyc -s yarn run test:node --bail
after_success:
- npm install -g travis-deploy-once
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then travis-deploy-once "npx nyc report --reporter=text-lcov > coverage.lcov && npx codecov"; fi
jobs:
include:
- stage: check
script:
- yarn aegir dep-check
- yarn run lint
- yarn run build
- stage: test
name: chrome
addons:
chrome: stable
script: npx aegir test -t browser -t webworker --node true --ts
- stage: test
name: firefox
addons:
firefox: latest
script: npx aegir test -t browser -t webworker --ts --node true -- --browsers FirefoxHeadless
- stage: test
name: electron-main
os: osx
script:
- npx aegir test -t electron-main --bail --ts
- stage: test
name: electron-renderer
os: osx
script:
- npx aegir test -t electron-renderer --node true --bail --ts
notifications:
email: false