forked from tojocky/node-printer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
62 lines (55 loc) · 1.57 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
env:
matrix:
- export NODE_VERSION="0.12.18"
- export NODE_VERSION="4.9.1"
- export NODE_VERSION="5.9.1"
- export NODE_VERSION="6.17.1"
- export NODE_VERSION="8.16.1"
- export NODE_VERSION="10.16.0"
- export NODE_VERSION="11.15.0"
- export NODE_VERSION="12.10.0"
- export NODE_VERSION="13.3.0"
matrix:
fast_finish: true
allow_failures:
- env: export NODE_VERSION="0.12.18"
before_script:
- git config --global user.name "Ion Lupascu"
- git config --global user.email ionlupascu@gmail.com
before_install:
- git clone https://github.com/creationix/nvm.git ./.nvm
- source ./.nvm/nvm.sh
- nvm install 12 64
- npm install -g node-pre-gyp-github
- nvm use 12
- npm -v
- node -v
- if [ $TRAVIS_OS_NAME == "linux" ]; then
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test;
sudo apt-get -qq update;
sudo apt-get -qq install g++-4.8;
export CXX='g++-4.8';
sudo apt-get install -qq debhelper autotools-dev cups-ppdc libcups2-dev cups imagemagick ghostscript;
fi
- "export JOBS=4"
- npm install -g node-gyp node-pre-gyp
- BUILD_ONLY=true npm install --build-from-source
script:
- node-pre-gyp configure --target=$NODE_VERSION
- node-pre-gyp build package --target=$NODE_VERSION --target_arch=x64
- node-pre-gyp configure --target=$NODE_VERSION
- node-pre-gyp build package --target=$NODE_VERSION --target_arch=ia32
# Need S3 Upload for Artifacts
addons:
artifacts:
debug: true
paths:
- ./build/stage/**/*.tar.gz
git:
depth: 1
branches:
only:
- master
os:
- linux
- osx