forked from node-usb/node-usb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (33 loc) · 958 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
language: objective-c
env:
matrix:
- NODE_VERSION="0.10.33"
- NODE_VERSION="0.12.0"
- NODE_VERSION="iojs-1.0.4"
- NODE_VERSION="iojs-1.1.0"
global:
secure: VwwHS3ZYxu5WudTcWRw588aekYZrTHMDvziNWLhPnadVs+ami6EF7CMHFZenkvSehmmaunKaH0vcNuxDXqLjrZN8Qt6aOuVVq9o/N6+8OG6/E2D0lDRFF9OZdAKetzS7EtoZfVJpqe009leg9V5mjx3uo1WRlc6SqmeKynaUDaY=
before_install:
- brew update
- brew install nvm
- mkdir ~/.nvm
- export NVM_DIR=~/.nvm
- source $(brew --prefix nvm)/nvm.sh
- nvm install $NODE_VERSION
- node --version
- npm --version
- npm install pangyp -g
- pangyp -v
- npm update -g npm
- npm --version
install:
- export PATH=./node_modules/.bin/:$PATH
script:
- npm install --build-from-source --node-gyp=$(which pangyp)
- "./node_modules/.bin/node-pre-gyp package"
- echo $TRAVIS_TAG
- echo $TRAVIS_PULL_REQUEST
- >
([[ "$TRAVIS_TAG" =~ ^v[0-9] ]] &&
test "$TRAVIS_PULL_REQUEST" = false &&
./node_modules/.bin/node-pre-gyp publish) || true