js-libp2p-noise/.travis.yml

59 lines
1.1 KiB
YAML
Raw Normal View History

2019-11-09 15:47:53 +01:00
language: node_js
2020-06-19 10:03:34 +01:00
cache: yarn
2020-06-18 22:23:39 +01:00
stages:
- check
- test
- cov
2019-11-09 15:47:53 +01:00
2020-06-23 12:00:01 +02:00
env:
- YARN_GPG=no
2020-06-18 22:23:39 +01:00
node_js:
- '12'
- '14'
2019-11-09 15:47:53 +01:00
2020-06-18 22:23:39 +01:00
os:
- linux
- osx
- windows
2019-11-09 15:47:53 +01:00
2020-06-19 10:03:34 +01:00
script: npx nyc -s yarn run test:node --bail
after_success:
- npm install -g travis-deploy-once
2020-06-23 11:11:39 +02:00
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then travis-deploy-once "npx nyc report --reporter=text-lcov > coverage.lcov && npx codecov"; fi
2020-06-18 22:23:39 +01:00
jobs:
include:
- stage: check
script:
2020-06-19 10:03:34 +01:00
- yarn aegir dep-check
- yarn run lint
2020-06-19 12:49:10 +02:00
- yarn run build
2020-06-18 22:23:39 +01:00
- stage: test
name: chrome
addons:
chrome: stable
2020-06-23 10:18:05 +02:00
script: npx aegir test -t browser -t webworker --node true --ts
2020-06-18 22:23:39 +01:00
- stage: test
name: firefox
addons:
firefox: latest
2020-06-23 10:18:05 +02:00
script: npx aegir test -t browser -t webworker --ts --node true -- --browsers FirefoxHeadless
2020-06-18 22:23:39 +01:00
- stage: test
name: electron-main
os: osx
script:
- npx aegir test -t electron-main --bail --ts
- stage: test
name: electron-renderer
os: osx
script:
2020-06-23 10:18:05 +02:00
- npx aegir test -t electron-renderer --node true --bail --ts
2020-06-18 22:23:39 +01:00
notifications:
email: false