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

Commit 4f75b44

Browse files
committed
chore: build packages before installing deps for examples
1 parent e6f6873 commit 4f75b44

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.travis.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -229,12 +229,13 @@ jobs:
229229
- stage: test
230230
name: examples
231231
script:
232-
- npx json -I -f ./lerna.json -e "this.packages.push('examples/*')"
233-
- npx json -I -f ./lerna.json -e "this.command.bootstrap.nohoist = ['ipfs-css', 'tachyons']"
234-
- npm run reset
235-
- npm install
236-
- npm run build -- --scope={ipfs-core,ipfs,ipfs-http-client,ipfs-message-port-*}
237-
- npm run test -- --scope=example* --concurrency=1
232+
# Travis lets scripts continue even if previous steps fail: https://github.com/travis-ci/travis-ci/issues/1066
233+
- npm run build -- --scope={ipfs-core,ipfs,ipfs-http-client,ipfs-message-port-*} &&
234+
rm -rf node_modules packages/*/node_modules &&
235+
npx json -I -f ./lerna.json -e "this.packages.push('examples/*')" &&
236+
npx json -I -f ./lerna.json -e "this.command.bootstrap.nohoist = ['ipfs-css', 'tachyons']" &&
237+
npm install &&
238+
npm run test -- --scope=example* --concurrency=1
238239

239240
- stage: release-rc
240241
# only run on changes to master

0 commit comments

Comments
 (0)