Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range 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: ipfs/js-ipfs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 146a57f5d96fd111b3dd3cc1926966600fa31ade
Choose a base ref
..
head repository: ipfs/js-ipfs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: f8ccb434732201c18b467be71d9fc554888111f8
Choose a head ref
Showing with 241 additions and 3 deletions.
  1. +240 −2 .travis.yml
  2. +1 −1 package.json
242 changes: 240 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,23 @@
language: node_js

branches:
only:
- master
- /^release\/.*$/

stages:
- check
- test
- tag

node_js:
- '10'
- '12'

os:
- linux
- osx
- windows

env:
# This stops Windows builds from hanging
@@ -35,12 +44,241 @@ jobs:
- stage: check
script:
- npx aegir build --bundlesize
- npx aegir dep-check -- -i wrtc -i electron-webrtc
- 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

- stage: test
name: electron-main
os: osx
script:
- npx aegir test -t electron-main --bail --timeout 10000

- stage: test
name: electron-renderer
os: osx
script:
- npx aegir test -t electron-renderer --bail --timeout 10000

- stage: test
name: interop - node
script:
- cd node_modules/ipfs-interop
- IPFS_JS_EXEC=./../../src/cli/bin.js IPFS_REUSEPORT=false npx aegir test -t node --bail

- stage: test
name: interop - browser
script:
- cd node_modules/ipfs-interop
- IPFS_JS_EXEC=./../../src/cli/bin.js IPFS_REUSEPORT=false npx aegir test -t browser --bail

- stage: test
name: interop - electron-main
os: osx
script:
- cd node_modules/ipfs-interop
- IPFS_JS_EXEC=./../../src/cli/bin.js IPFS_REUSEPORT=false npx aegir test -t electron-main -f ./test/node.js --bail --timeout 10000

- stage: test
name: interop - electron-renderer
os: osx
script:
- cd node_modules/ipfs-interop
- IPFS_JS_EXEC=./../../src/cli/bin.js IPFS_REUSEPORT=false npx aegir test -t electron-renderer -f ./test/browser.js --bail --timeout 10000

- stage: test
name: external - ipfs-webui
script:
- E2E_IPFSD_TYPE=js npm run test:external -- ipfs-webui https://github.com/ipfs-shipyard/ipfs-webui.git --branch "fix/test-external"
#- DEBUG=true E2E_IPFSD_TYPE=js IPFS_JS_EXEC=$(realpath ./src/cli/bin.js) npm run test:external -- ipfs-webui https://github.com/ipfs-shipyard/ipfs-webui.git --branch "fix/test-external"
- E2E_IPFSD_TYPE=js npm run test:external -- ipfs-webui https://github.com/ipfs-shipyard/ipfs-webui.git

- stage: test
name: external - ipfs-companion
script:
- npm run test:external -- ipfs-companion https://github.com/ipfs-shipyard/ipfs-companion.git

- stage: test
name: external - npm-on-ipfs
script:
- npm run test:external -- npm-on-ipfs https://github.com/ipfs-shipyard/npm-on-ipfs.git

- stage: test
name: external - ipfs-pubsub-room
script:
- npm run test:external -- ipfs-pubsub-room https://github.com/ipfs-shipyard/ipfs-pubsub-room.git --branch upgrade-to-latest-js-ipfs-rc

- stage: test
name: external - peer-base
script:
- npm run test:external -- peer-base https://github.com/achingbrain/peer-base.git --branch upgrade-to-latest-ipfs-rc

- stage: test
name: external - service-worker-gateway
script:
- npm run test:external -- service-worker-gateway https://github.com/ipfs-shipyard/service-worker-gateway.git

- stage: test
name: external - orbit-db
script:
- npm run test:external -- orbit-db https://github.com/orbitdb/orbit-db.git

- stage: test
name: external - ipfs-log
script:
- npm run test:external -- ipfs-log https://github.com/orbitdb/ipfs-log.git

- stage: test
name: external - sidetree
script:
- npm run test:external -- sidetree https://github.com/decentralized-identity/sidetree.git

- stage: test
name: example - browser-add-readable-stream
script:
- cd examples
- npm install
- npm run test -- browser-add-readable-stream

- stage: test
name: example - browser-browserify
script:
- cd examples
- npm install
- npm run test -- browser-browserify

- stage: test
name: example - browser-create-react-app
script:
- cd examples
- npm install
- npm run test -- browser-create-react-app

- stage: test
name: example - browser-mfs
script:
- cd examples
- npm install
- npm run test -- browser-mfs

- stage: test
name: example - browser-parceljs
script:
- cd examples
- npm install
- npm run test -- browser-parceljs

- stage: test
name: example - browser-readablestream
script:
- cd examples
- npm install
- npm run test -- browser-readablestream

- stage: test
name: example - browser-script-tag
script:
- cd examples
- npm install
- npm run test -- browser-script-tag

- stage: test
name: example - browser-video-streaming
script:
- cd examples
- npm install
- npm run test -- browser-video-streaming

- stage: test
name: example - browser-vue
script:
- cd examples
- npm install
- npm run test -- browser-vue

- stage: test
name: example - browser-webpack
script:
- cd examples
- npm install
- npm run test -- browser-webpack

- stage: test
name: example - circuit-relaying
script:
- cd examples
- npm install
- npm run test -- circuit-relaying

- stage: test
name: example - custom-ipfs-repo
script:
- cd examples
- npm install
- npm run test -- custom-ipfs-repo

- stage: test
name: example - custom-libp2p
script:
- cd examples
- npm install
- npm run test -- custom-libp2p

- stage: test
name: example - exchange-files-in-browser
script:
- cd examples
- npm install
- npm run test -- exchange-files-in-browser

- stage: test
name: example - explore-ethereum-blockchain
script:
- cd examples
- npm install
- npm run test -- explore-ethereum-blockchain

- stage: test
name: example - ipfs-101
script:
- cd examples
- npm install
- npm run test -- ipfs-101

- stage: test
name: example - running-multiple-nodes
script:
- cd examples
- npm install
- npm run test -- running-multiple-nodes

- stage: test
name: example - traverse-ipld-graphs
script:
- cd examples
- npm install
- npm run test -- traverse-ipld-graphs

- stage: tag
# only run on changes to master
if: branch = master AND type = push AND fork = false
name: update-last-successful-build
script:
- git config --global user.email "travis@travis-ci.org"
- git config --global user.name "Travis CI"
- git remote set-url origin https://$TRAVIS_GITHUB_USER:$TRAVIS_GITHUB_TOKEN@github.com/ipfs/js-ipfs.git
- npx aegir update-last-successful-build

notifications:
email: false
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ipfs",
"version": "0.40.0-test",
"version": "0.40.0",
"description": "JavaScript implementation of the IPFS specification",
"keywords": [
"IPFS"