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

Commit

Permalink
chore: link before building
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain committed Sep 24, 2020
1 parent a2844b9 commit 76f7ebb
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 2 deletions.
64 changes: 62 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ before_install:
# disable auto-install as we will do one install step and cache the results
install: true

script:
- npm link
- npm run test:node -- $RUN_SINCE -- -- --timeout 10000 --bail

jobs:
allow_failures:
- name: external - ipfs-webui
Expand All @@ -84,227 +88,274 @@ jobs:
- stage: check
name: deps
script:
- npm run link
- npm run dep-check -- $RUN_SINCE -- -- -- -i electron-webrtc

- stage: check
name: lint
script:
- npm run link
- npm run lint -- $RUN_SINCE --concurrency 1

- stage: check
name: deps and lint which is faster
script:
- npm run link
- npm run lint -- $RUN_SINCE --concurrency 1
- npm run dep-check -- $RUN_SINCE -- -- -- -i electron-webrtc

- stage: check
name: lint
script:
- npm run link
- npm run lint -- $RUN_SINCE --concurrency 1

- stage: test
name: chrome
addons:
chrome: stable
script:
- npm run link
- npm run test:browser -- $RUN_SINCE -- -- --bail

- stage: test
name: chrome webworker
addons:
chrome: stable
script:
- npm run link
- npm run test:webworker -- $RUN_SINCE -- -- --bail

- stage: test
name: firefox
addons:
firefox: latest
script:
- npm run link
- npm run test:browser -- $RUN_SINCE -- -- --bail --browsers FirefoxHeadless

- stage: test
name: firefox webworker
addons:
firefox: latest
script:
- npm run link
- npm run test:webworker -- $RUN_SINCE -- -- --bail --browsers FirefoxHeadless

- stage: test
name: electron-main
os: osx
script:
- npm run link
- npm run test:electron-main -- $RUN_SINCE -- -- --bail

- stage: test
name: electron-renderer
os: osx
script:
- npm run link
- npm run test:electron-renderer -- $RUN_SINCE -- -- --bail

- stage: test
name: interop - node
script:
- npm run link
- npm run test:interop -- $RUN_SINCE -- -- -- -t node --bail

- stage: test
name: interop - browser
script:
- npm run link
- npm run test:interop -- $RUN_SINCE -- -- -- -t browser --bail

- stage: test
name: interop - electron-main
os: osx
script:
- npm run link
- npm run test:interop -- $RUN_SINCE -- -- -- -t electron-main -f ./test/node.js --bail --timeout 10000

- stage: test
name: interop - electron-renderer
os: osx
script:
- npm run link
- npm run test:interop -- $RUN_SINCE -- -- -- -t electron-renderer -f ./test/browser.js -bail --timeout 10000

- stage: test
name: js-ipfs interface tests - node
addons:
chrome: stable
script:
- npm run link
- npm run test:interface:core -- $RUN_SINCE -- -- --bail -t node

- stage: test
name: js-ipfs interface tests - chrome
addons:
chrome: stable
script:
- npm run link
- npm run test:interface:core -- $RUN_SINCE -- -- --bail -t browser

- stage: test
name: js-ipfs interface tests - chrome webworker
addons:
chrome: stable
script:
- npm run link
- npm run test:interface:core -- $RUN_SINCE -- -- --bail -t webworker

- stage: test
name: js-ipfs interface tests - firefox
addons:
firefox: latest
script:
- npm run link
- npm run test:interface:core -- $RUN_SINCE -- -- --bail -t browser --browsers FirefoxHeadless

- stage: test
name: js-ipfs interface tests - firefox webworker
addons:
firefox: latest
script:
- npm run link
- npm run test:interface:core -- $RUN_SINCE -- -- --bail -t webworker --browsers FirefoxHeadless

- stage: test
name: js-ipfs interface tests - electron main
script:
- npm run link
- npm run test:interface:core -- $RUN_SINCE -- -- --bail -t electron-main

- stage: test
name: js-ipfs interface tests - electron renderer
script:
- npm run link
- npm run test:interface:core -- $RUN_SINCE -- -- --bail -t electron-renderer

- stage: test
name: http-api-client interface tests vs go-ipfs - node
addons:
chrome: stable
script:
- npm run link
- npm run test:interface:http-go -- $RUN_SINCE -- -- --bail -t node

- stage: test
name: http-api-client interface tests vs go-ipfs - chrome
addons:
chrome: stable
script:
- npm run link
- npm run test:interface:http-go -- $RUN_SINCE -- -- --bail -t browser

- stage: test
name: http-api-client interface tests vs go-ipfs - chrome webworker
addons:
chrome: stable
script:
- npm run link
- npm run test:interface:http-go -- $RUN_SINCE -- -- --bail -t webworker

- stage: test
name: http-api-client interface tests vs go-ipfs - firefox
addons:
firefox: latest
script:
- npm run link
- npm run test:interface:http-go -- $RUN_SINCE -- -- --bail -t browser --browsers FirefoxHeadless

- stage: test
name: http-api-client interface tests vs go-ipfs - firefox webworker
addons:
firefox: latest
script:
- npm run link
- npm run test:interface:http-go -- $RUN_SINCE -- -- --bail -t webworker --browsers FirefoxHeadless

- stage: test
name: http-api-client interface tests vs go-ipfs - electron main
script:
- npm run link
- npm run test:interface:http-go -- $RUN_SINCE -- -- --bail -t electron-main

- stage: test
name: http-api-client interface tests vs go-ipfs - electron renderer
script:
- npm run link
- npm run test:interface:http-go -- $RUN_SINCE -- -- --bail -t electron-renderer

- stage: test
name: http-api-client interface tests vs js-ipfs - node
env:
- DEBUG=ipfs*
script:
- npm run link
- npm run test:interface:http-js -- $RUN_SINCE -- -- --bail -t node

- stage: test
name: http-api-client interface tests vs js-ipfs - chrome
addons:
chrome: stable
script:
- npm run link
- npm run test:interface:http-js -- $RUN_SINCE -- -- --bail -t browser

- stage: test
name: http-api-client interface tests vs js-ipfs - chrome webworker
addons:
chrome: stable
script:
- npm run link
- npm run test:interface:http-js -- $RUN_SINCE -- -- --bail -t webworker

- stage: test
name: http-api-client interface tests vs js-ipfs - firefox
addons:
firefox: latest
script:
- npm run link
- npm run test:interface:http-js -- $RUN_SINCE -- -- --bail -t browser --browsers FirefoxHeadless

- stage: test
name: http-api-client interface tests vs js-ipfs - firefox webworker
addons:
firefox: latest
script:
- npm run link
- npm run test:interface:http-js -- $RUN_SINCE -- -- --bail -t webworker --browsers FirefoxHeadless

- stage: test
name: http-api-client interface tests vs js-ipfs - electron main
script:
- npm run link
- npm run test:interface:http-js -- $RUN_SINCE -- -- --bail -t electron-main

- stage: test
name: http-api-client interface tests vs js-ipfs - electron renderer
script:
- npm run link
- npm run test:interface:http-js -- $RUN_SINCE -- -- --bail -t electron-renderer

- stage: test
name: ipfs-message-port-client interface tests - chrome
addons:
chrome: stable
script:
- npm run link
- npm run test:interface:message-port-client -- $RUN_SINCE -- -- --bail -t browser

- stage: test
name: ipfs-message-port-client interface tests - firefox
addons:
firefox: latest
script:
- npm run link
- npm run test:interface:message-port-client -- $RUN_SINCE -- -- --bail -t browser --browsers FirefoxHeadless

- stage: test
name: examples
script:
- npm run link
- npx json -I -f ./lerna.json -e "this.packages.push('examples/*')"
- npx json -I -f ./lerna.json -e "this.command.bootstrap.nohoist = ['ipfs-css', 'tachyons']"
- npm run reset
Expand All @@ -317,6 +368,7 @@ jobs:
if: branch = master AND type = push AND fork = false
name: release rc
script:
- npm run link
# travis does not fetch the whole repo history, but we need that to work out the
# ref count to publish canary releases properly
- git fetch --unshallow
Expand All @@ -330,55 +382,63 @@ jobs:
if: branch = master AND type = push AND fork = false
name: external - ipfs-webui
script:
- npm run link
- E2E_IPFSD_TYPE=js npm run test:external -- -- -- https://github.com/ipfs-shipyard/ipfs-webui.git --deps=ipfs@next

- stage: test-external
# only run on changes to master
if: branch = master AND type = push AND fork = false
name: external - ipfs-companion
script:
- npm run link
- npm run test:external -- -- -- https://github.com/ipfs-shipyard/ipfs-companion.git --deps=ipfs@next

- stage: test-external
# only run on changes to master
if: branch = master AND type = push AND fork = false
name: external - npm-on-ipfs
script:
- npm run link
- npm run test:external -- -- -- https://github.com/ipfs-shipyard/npm-on-ipfs.git --deps=ipfs@next

- stage: test-external
# only run on changes to master
if: branch = master AND type = push AND fork = false
name: external - peer-base
script:
- npm run link
- npm run test:external -- -- -- https://github.com/achingbrain/peer-base.git --branch upgrade-to-latest-ipfs-rc --deps=ipfs@next

- stage: test-external
# only run on changes to master
if: branch = master AND type = push AND fork = false
name: external - service-worker-gateway
script:
- npm run link
- npm run test:external -- -- -- https://github.com/ipfs-shipyard/service-worker-gateway.git --deps=ipfs@next

- stage: test-external
# only run on changes to master
if: branch = master AND type = push AND fork = false
name: external - orbit-db
script:
- npm run link
- npm run test:external -- -- -- https://github.com/orbitdb/orbit-db.git --deps=ipfs@next

- stage: test-external
# only run on changes to master
if: branch = master AND type = push AND fork = false
name: external - ipfs-log
script:
- npm run link
- npm run test:external -- -- -- https://github.com/orbitdb/ipfs-log.git --deps=ipfs@next

- stage: test-external
# only run on changes to master
if: branch = master AND type = push AND fork = false
name: external - sidetree
script:
- npm run link
- npm run test:external -- -- -- https://github.com/decentralized-identity/sidetree.git --deps=ipfs@next

notifications:
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "JavaScript implementation of the IPFS specification",
"scripts": {
"postinstall": "lerna bootstrap",
"link": "lerna link",
"reset": "lerna run clean && rm -rf packages/*/node_modules node_modules",
"test": "lerna run test",
"test:node": "lerna run test:node",
Expand Down

0 comments on commit 76f7ebb

Please sign in to comment.