2019-02-14 17:07:13 +00:00
|
|
|
language: node_js
|
|
|
|
cache: npm
|
|
|
|
stages:
|
|
|
|
- check
|
|
|
|
- test
|
|
|
|
- cov
|
|
|
|
|
|
|
|
node_js:
|
|
|
|
- '10'
|
2019-06-07 15:50:23 +02:00
|
|
|
- '12'
|
2019-02-14 17:07:13 +00:00
|
|
|
|
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
- osx
|
2019-05-17 10:31:16 +02:00
|
|
|
|
2019-02-14 17:07:13 +00: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-12-08 11:05:11 +01:00
|
|
|
- npx aegir build --bundlesize
|
2019-12-08 11:04:52 +01:00
|
|
|
# Remove pull libs once ping is async
|
2019-12-08 11:07:44 +01:00
|
|
|
- npx aegir dep-check -- -i pull-handshake -i pull-stream
|
2019-02-14 17:07:13 +00:00
|
|
|
- npm run lint
|
|
|
|
|
|
|
|
- stage: test
|
|
|
|
name: chrome
|
|
|
|
addons:
|
|
|
|
chrome: stable
|
|
|
|
script:
|
2019-10-02 13:31:28 +02:00
|
|
|
- npx aegir test -t browser -t webworker
|
2019-02-14 17:07:13 +00:00
|
|
|
|
|
|
|
- stage: test
|
|
|
|
name: firefox
|
|
|
|
addons:
|
|
|
|
firefox: latest
|
|
|
|
script:
|
2019-10-02 13:31:28 +02:00
|
|
|
- npx aegir test -t browser -t webworker -- --browsers FirefoxHeadless
|
2019-02-14 17:07:13 +00:00
|
|
|
|
2020-02-05 12:01:46 +01:00
|
|
|
- stage: test
|
|
|
|
name: interop
|
|
|
|
script:
|
|
|
|
- cd node_modules/interop-libp2p
|
|
|
|
- npm install
|
|
|
|
- LIBP2P_JS=${TRAVIS_BUILD_DIR}/src/index.js npx aegir test -t node --bail
|
|
|
|
|
2019-02-14 17:07:13 +00:00
|
|
|
notifications:
|
|
|
|
email: false
|