mirror of
https://github.com/fluencelabs/js-libp2p-websockets
synced 2025-04-24 15:22:25 +00:00
The ephemeral port and host skips are no longer valid, so tests have been added for those. The other skipped test is now covered by the interface tests, so it's no longer needed. * chore: add node 12 to ci * chore: add docs and dist to gitignore * chore: clean up travis file
49 lines
854 B
YAML
49 lines
854 B
YAML
language: node_js
|
|
cache: npm
|
|
sudo: false
|
|
|
|
stages:
|
|
- check
|
|
- test
|
|
- cov
|
|
|
|
node_js:
|
|
- '10'
|
|
- '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
|
|
|
|
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:
|
|
- npx aegir build --bundlesize
|
|
- npx aegir dep-check
|
|
- 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
|