Skip to content

Commit c670fcc

Browse files
authored
Merge pull request node-usb#138 from tessel/tcr-update
Updates travis, appveyor.
2 parents 5d4fdbf + 6120a4c commit c670fcc

File tree

3 files changed

+49
-52
lines changed

3 files changed

+49
-52
lines changed

.travis.yml

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1+
branches:
2+
only:
3+
- master
4+
- /^v?[0-9]/
5+
16
language: objective-c
7+
28
env:
39
matrix:
4-
- NODE_VERSION="0.12.7"
5-
- NODE_VERSION="iojs-1.0.4"
6-
- NODE_VERSION="iojs-1.8.4"
7-
- NODE_VERSION="iojs-2.5.0"
8-
- NODE_VERSION="iojs-3.3.1"
9-
- NODE_VERSION="4.1"
10-
- NODE_VERSION="4.2"
11-
- NODE_VERSION="5.0"
12-
global:
13-
secure: VwwHS3ZYxu5WudTcWRw588aekYZrTHMDvziNWLhPnadVs+ami6EF7CMHFZenkvSehmmaunKaH0vcNuxDXqLjrZN8Qt6aOuVVq9o/N6+8OG6/E2D0lDRFF9OZdAKetzS7EtoZfVJpqe009leg9V5mjx3uo1WRlc6SqmeKynaUDaY=
10+
- NODE_VERSION="0.12"
11+
- NODE_VERSION="4"
12+
- NODE_VERSION="5"
13+
- NODE_VERSION="6"
1414

1515
before_install:
1616
- brew update
@@ -21,20 +21,17 @@ before_install:
2121
- nvm install $NODE_VERSION
2222
- node --version
2323
- npm --version
24-
- npm install pangyp -g
25-
- pangyp -v
26-
- npm update -g npm
27-
- npm --version
2824

2925
install:
3026
- export PATH=./node_modules/.bin/:$PATH
27+
- npm install -g node-pre-gyp-github
3128

3229
script:
3330
- npm install --build-from-source --node-gyp=$(which pangyp)
3431
- "./node_modules/.bin/node-pre-gyp package"
3532
- echo $TRAVIS_TAG
3633
- echo $TRAVIS_PULL_REQUEST
37-
- >
38-
([[ "$TRAVIS_TAG" =~ ^v[0-9] ]] &&
34+
- >
35+
([[ "$TRAVIS_TAG" =~ ^v?[0-9] ]] &&
3936
test "$TRAVIS_PULL_REQUEST" = false &&
40-
./node_modules/.bin/node-pre-gyp publish) || true
37+
node-pre-gyp-github publish) || true

appveyor.yml

Lines changed: 26 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,40 @@
1+
branches:
2+
only:
3+
- master
4+
- /^v?[0-9]/
5+
16
environment:
27
GYP_MSVS_VERSION: 2013
38

4-
node_pre_gyp_accessKeyId:
5-
secure: lYXAEyCIM03tC8M9oS4U1JXWbo+g9u+AnayYjekgqBQ=
6-
node_pre_gyp_secretAccessKey:
7-
secure: yRw0LuKh8Q/BORVLbBMaZXyGIvpIYuxYzGSherheoYTEMONUYfgj49x8b/FUm4s1
8-
99
matrix:
10-
- node_version: '0.12.7'
11-
- node_version: '1.0'
12-
- node_version: '1.8'
13-
- node_version: '2.5'
14-
- node_version: '3.3'
15-
- node_version: '4.1'
16-
- node_version: '5.0'
10+
- node_version: '0.12'
11+
- node_version: '4'
12+
- node_version: '5'
13+
- node_version: '6'
1714

1815
install:
1916
- ps: Install-Product node $env:node_version $env:platform
20-
- ps: npm install -g node-gyp
21-
- ps: $publish_binary=0
22-
- ps: if ($env:appveyor_repo_tag -match "true" -and $env:appveyor_repo_tag_name -match '^v[0-9]') { $publish_binary=1; }
17+
- ps: npm install -g node-gyp node-pre-gyp-github
18+
# This fixes an issue with Node 4.x on x86. If it builds without this line
19+
# needing to be set, we can remove it.
20+
- ps: npm config -g set node-gyp "$(npm config -g get prefix)\node_modules\node-gyp\bin\node-gyp.js"
21+
22+
- ps: if ($env:appveyor_repo_tag -match "true" -and $env:appveyor_repo_tag_name -match '^v?[0-9]') { $publish_binary=1; }
2323

2424
build_script:
2525
- ps: echo $publish_binary
26-
- ps: >
27-
& {
28-
$ErrorActionPreference = 'SilentlyContinue'
29-
git submodule update --init 2>&1 | write-host
30-
npm install --build-from-source 2>&1 | write-host
31-
./node_modules/.bin/node-pre-gyp package 2>&1 | write-host
32-
if ($publish_binary) { ./node_modules/.bin/node-pre-gyp publish 2>&1 | write-host; }
26+
- ps: |
27+
$ErrorActionPreference = 'Continue'
28+
git submodule update --init 2>&1 | write-host
29+
npm install --build-from-source 2>&1 | write-host
30+
./node_modules/.bin/node-pre-gyp package 2>&1 | write-host
31+
if ($publish_binary -Eq "1") {
32+
node-pre-gyp-github publish 2>&1 | write-host
33+
if (-Not ($?)) {
34+
throw "Failed publishing";
35+
}
3336
}
37+
echo "done."
3438
3539
platform:
3640
- x86

package.json

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"name": "usb",
33
"description": "Library to access USB devices",
4+
"version": "1.2.0",
5+
"engines": {
6+
"node": ">=0.12.x"
7+
},
48
"keywords": [
59
"usb",
610
"hardware"
711
],
8-
"author": {
9-
"name": "Nonolith Labs",
10-
"url": "http://www.nonolithlabs.com"
11-
},
1212
"contributors": [
1313
{
1414
"name": "Kevin Mehall",
@@ -24,14 +24,10 @@
2424
"name": "Christopher Klein"
2525
}
2626
],
27-
"version": "1.1.2",
28-
"engines": {
29-
"node": ">=0.12.x"
30-
},
3127
"main": "./usb",
3228
"repository": {
3329
"type": "git",
34-
"url": "https://github.com/nonolith/node-usb.git"
30+
"url": "https://github.com/tessel/node-usb.git"
3531
},
3632
"scripts": {
3733
"install": "node-pre-gyp install --fallback-to-build",
@@ -42,12 +38,12 @@
4238
"binary": {
4339
"module_name": "usb_bindings",
4440
"module_path": "./src/binding",
45-
"host": "https://tessel-builds.s3-us-west-2.amazonaws.com",
46-
"remote_path": "./pre-gyp/{name}/v{version}"
41+
"host": "https://github.com/tessel/node-usb/releases/download/",
42+
"remote_path": "{version}"
4743
},
4844
"dependencies": {
49-
"nan": "^2.1.0",
50-
"node-pre-gyp": "^0.6.13"
45+
"nan": "^2.4.0",
46+
"node-pre-gyp": "^0.6.30"
5147
},
5248
"bundledDependencies": [
5349
"node-pre-gyp"

0 commit comments

Comments
 (0)