Skip to content

Commit d804859

Browse files
committed
Trigger tests of prebuilts on postpublish
1 parent 6f32575 commit d804859

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"install": "prebuild --install --preinstall \"npm run build:libzmq\"",
2929
"prebuild": "prebuild --all --strip",
3030
"build:docs": "jsdoc -R README.md -d docs lib/*.js",
31+
"postpublish": "./scripts/trigger_travis_build.sh",
3132
"test": "mocha --expose-gc --slow 300",
3233
"test:electron": "electron-mocha --slow 300",
3334
"precoverage": "nyc npm run test",

scripts/trigger_travis_build.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
body='{
2+
"request": {
3+
"message": "Test prebuilt binaries",
4+
"branch": "prebuilt-testing"
5+
}}'
6+
7+
curl -s -X POST \
8+
-H "Content-Type: application/json" \
9+
-H "Accept: application/json" \
10+
-H "Travis-API-Version: 3" \
11+
-H "Authorization: token $TRAVIS_TOKEN" \
12+
-d "$body" \
13+
https://api.travis-ci.org/repo/zeromq%2Fzeromq.js/requests

0 commit comments

Comments
 (0)