Skip to content
This repository was archived by the owner on Apr 24, 2023. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: libp2p/js-libp2p-webrtc-star
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2233c8b8d0812b66513e4fe30c2b4707b314d2bf
Choose a base ref
...
head repository: libp2p/js-libp2p-webrtc-star
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: c07ac28a0d08962ecfaf340f2ad715edee15a177
Choose a head ref
Loading
14 changes: 5 additions & 9 deletions .aegir.js
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@ const sigServer = require('./src/sig-server')
let firstRun = true
let sigS

function boot (done) {
async function boot () {
const options = {
port: 15555,
host: '127.0.0.1',
@@ -13,17 +13,13 @@ function boot (done) {

if (firstRun) { firstRun = false }

sigServer.start(options, (err, server) => {
if (err) { throw err }
sigS = await sigServer.start(options)

sigS = server
console.log('signalling on:', server.info.uri)
done()
})
console.log('signalling on:', sigS.info.uri)
}

function stop (done) {
sigS.stop(done)
async function stop () {
await sigS.stop()
}

module.exports = {
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -41,3 +41,4 @@ test/test-data/go-ipfs-repo/LOG.old

# while testing npm5
package-lock.json
yarn.lock
28 changes: 0 additions & 28 deletions .npmignore

This file was deleted.

61 changes: 35 additions & 26 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,41 @@
sudo: false
language: node_js
cache: npm
stages:
- check
- test
- cov

matrix:
include:
- node_js: 6
env: CXX=g++-4.8
- node_js: 8
env: CXX=g++-4.8
# - node_js: stable
# env: CXX=g++-4.8
node_js:
- '10'
- '12'

os:
- linux
- osx

script:
- npm run lint
- npm run test
- npm run coverage
- make test
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 dep-check -- -i wrtc -i electron-webrtc
- npm run lint

before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- stage: test
name: chrome
addons:
chrome: stable
script:
- npx aegir test -t browser

after_success:
- npm run coverage-publish
- stage: test
name: firefox
addons:
firefox: latest
script:
- npx aegir test -t browser -- --browsers FirefoxHeadless

addons:
firefox: 'latest'
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
notifications:
email: false
Loading