Skip to content
This repository has been archived by the owner on Oct 19, 2022. It is now read-only.

Commit

Permalink
chore: use travis for ci (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobheun committed Jul 9, 2019
1 parent 9854a1d commit 0c12bf0
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 15 deletions.
42 changes: 42 additions & 0 deletions .travis.yml
@@ -0,0 +1,42 @@
language: node_js
cache: npm
stages:
- check
- test
- cov

node_js:
- '10'
- '12'

os:
- linux
- osx

script: npx nyc -s npm run test:node -- --bail
after_success: npx nyc report --reporter=text-lcov > coverage.lcov && npx codecov

jobs:
include:
- os: windows
cache: false

- stage: check
script:
- npx aegir dep-check
- npm run lint

- stage: test
name: chrome
addons:
chrome: stable
script: npx aegir test -t browser -t webworker

- stage: test
name: firefox
addons:
firefox: latest
script: npx aegir test -t browser -t webworker -- --browsers FirefoxHeadless

notifications:
email: false
2 changes: 0 additions & 2 deletions ci/Jenkinsfile

This file was deleted.

1 change: 1 addition & 0 deletions example.js
Expand Up @@ -12,5 +12,6 @@ const conn = new Connection()

// apply the multistream to the conn
listener.handle(conn, () => {
// eslint-disable-next-line
console.log('connection established')
})
21 changes: 10 additions & 11 deletions package.json
Expand Up @@ -22,8 +22,7 @@
"url": "git+https://github.com/multiformats/js-multistream-select.git"
},
"pre-push": [
"lint",
"test"
"lint"
],
"keywords": [
"node",
Expand All @@ -42,22 +41,22 @@
},
"license": "MIT",
"dependencies": {
"interface-connection": "~0.3.2",
"async": "^2.6.0",
"debug": "^4.1.0",
"interface-connection": "~0.3.3",
"async": "^3.1.0",
"debug": "^4.1.1",
"once": "^1.4.0",
"pull-handshake": "^1.1.4",
"pull-length-prefixed": "^1.3.1",
"pull-stream": "^3.6.7",
"semver": "^5.5.0",
"pull-length-prefixed": "^1.3.3",
"pull-stream": "^3.6.13",
"semver": "^6.2.0",
"varint": "^5.0.0"
},
"devDependencies": {
"aegir": "^18.0.3",
"chai": "^4.1.2",
"aegir": "^19.0.5",
"chai": "^4.2.0",
"dirty-chai": "^2.0.1",
"libp2p-multiplex": "~0.5.1",
"libp2p-spdy": "~0.13.1",
"pull-mplex": "~0.1.2",
"pull-pair": "^1.1.0",
"pump": "^3.0.0",
"run-parallel": "^1.1.9",
Expand Down
4 changes: 2 additions & 2 deletions test/handshake.spec.js
Expand Up @@ -12,14 +12,14 @@ const parallel = require('run-parallel')
const series = require('run-series')

const spdy = require('libp2p-spdy')
const multiplex = require('libp2p-multiplex')
const multiplex = require('pull-mplex')
const util = require('./util')
const createPair = util.createPair

const options = [
{ name: 'over pull-pair' },
{ name: 'over spdy', muxer: spdy },
{ name: 'over multiplex', muxer: multiplex }
{ name: 'over mplex', muxer: multiplex }
]

options.forEach((option) => {
Expand Down

0 comments on commit 0c12bf0

Please sign in to comment.