Skip to content

Commit 601450f

Browse files
authored
Merge pull request #108 from lgeiger/trigger-travis-build
Trigger tests of prebuilts on postpublish
2 parents 6f32575 + 4915a35 commit 601450f

File tree

3 files changed

+29
-2
lines changed

3 files changed

+29
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
[![Build Status](https://travis-ci.org/zeromq/zeromq.js.svg?branch=master)](https://travis-ci.org/zeromq/zeromq.js)
66
[![Build status](https://ci.appveyor.com/api/projects/status/6u7saauir2msxpou?svg=true)](https://ci.appveyor.com/project/zeromq/zeromq.js)
77
[![](https://img.shields.io/badge/version-stable-blue.svg)](https://github.com/zeromq/zeromq.js/releases)
8-
[![Build Status](https://travis-ci.org/nteract/zmq-prebuilt-testing.svg?branch=master)](https://travis-ci.org/nteract/zmq-prebuilt-testing)
9-
[![Build status](https://ci.appveyor.com/api/projects/status/ox85p208tsxw6vt1?svg=true)](https://ci.appveyor.com/project/nteract/zmq-prebuilt-testing)
8+
[![Build Status](https://travis-ci.org/zeromq/zeromq.js.svg?branch=prebuilt-testing)](https://travis-ci.org/zeromq/zeromq.js)
9+
[![Build status](https://ci.appveyor.com/api/projects/status/w189dgubmg9darun/branch/master?svg=true)](https://ci.appveyor.com/project/zeromq/zeromq-js/branch/prebuilt-testing)
1010

1111
[**Users**](#installation---users) | [**From Source**](#installation---from-source) | [**Contributors and Development**](#installation---contributors-and-development) | [**Maintainers**](#for-maintainers-creating-a-release)
1212

package.json

+1
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

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
travis_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 "$travis_body" \
13+
https://api.travis-ci.org/repo/zeromq%2Fzeromq.js/requests
14+
15+
appveyor_body='{
16+
"accountName": "zeromq",
17+
"projectSlug": "zeromq-js",
18+
"branch": "prebuilt-testing",
19+
}'
20+
21+
curl -s -X POST \
22+
-H "Content-Type: application/json" \
23+
-H "Accept: application/json" \
24+
-H "Authorization: Bearer $APPVEYOR_TOKEN" \
25+
-d "$appveyor_body" \
26+
https://ci.appveyor.com/api/builds

0 commit comments

Comments
 (0)