Skip to content

Commit a96c235

Browse files
achingbrainAlan Shaw
authored and
Alan Shaw
committed
test: run examples/externals on PRs too (#2559)
We run automated tests of IPFS examples & external repos on our release branches, but there's no good reason not to run them on every PR instead to give people early warning of breakages. This PR changes the `.travis.yml` file to run all tests on every submitted PR.
1 parent f2ca391 commit a96c235

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

package.json

+3
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,8 @@
1919
"libp2p-tcp": "~0.13.0",
2020
"libp2p-websocket-star": "~0.10.2",
2121
"pull-mplex": "~0.1.0"
22+
},
23+
"devDependencies": {
24+
"execa": "^3.2.0"
2225
}
2326
}

test.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ const PeerBook = require('peer-book')
1616
async function test () {
1717
let output = ''
1818

19-
const proc = execa('node', [ path.join(__dirname, 'index.js') ], {
20-
cwd: path.resolve(__dirname)
19+
const proc = execa('node', [path.join(__dirname, 'index.js')], {
20+
cwd: path.resolve(__dirname),
21+
all: true
2122
})
2223
proc.all.on('data', async (data) => {
2324
process.stdout.write(data)

0 commit comments

Comments
 (0)