forked from node-usb/node-usb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
65 lines (56 loc) · 1.34 KB
/
.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
language: cpp
os:
- linux
- osx
- windows
dist: trusty
addons:
apt:
packages:
- libudev-dev
env:
global:
# Supported Node versions: https://nodejs.org/en/about/releases/
- PREBUILD_TARGETS="6.0.0 8.0.0 10.0.0 12.0.0 14.0.0"
# Supported Electron versions: https://electronjs.org/docs/tutorial/electron-timelines
- PREBUILD_ELECTRON_TARGETS="4.0.4 5.0.0 6.0.0 7.0.0 8.0.0 9.0.0"
matrix:
- ARCH="x64"
- ARCH="ia32"
matrix:
exclude:
- os: linux
env: ARCH="ia32"
- os: osx
env: ARCH="ia32"
before_install:
- |
if [ $TRAVIS_OS_NAME == windows ]; then
choco install nodejs-lts
export PATH="/c/Program Files/nodejs:$PATH"
export GYP_MSVS_VERSION=2015
fi
- $CXX --version
- node --version
- npm --version
install:
- npm install
script:
- |
for target in $PREBUILD_TARGETS; do
npm run prebuild -- -t $target --arch=$ARCH
done
for target in $PREBUILD_ELECTRON_TARGETS; do
npm run prebuild -- -t $target --arch=$ARCH -r electron
done
deploy:
provider: releases
api_key:
# tm-rampart personal access token
secure: "ivZseBMz+0bsYcCFAXJ82mJIhmsRj4UN32bcggg+8ZYl8xzgC2P/kMGhPe8+4fDxo+lyxf4aJDKWozE0perMQKjjAOdri8MH2ufqGFRfkF0A3gJnOBcWMA6AP3ef0TE/HNF+NMluBCV+/VFPdsvZN08rnPauWzSBGy9SkeIJhY8="
file_glob: true
file: prebuilds/*
skip_cleanup: true
overwrite: true
on:
tags: true