forked from tojocky/node-printer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
56 lines (51 loc) · 1.32 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
env:
matrix:
- export NODE_VERSION="6.9"
- export NODE_VERSION="5.9"
- export NODE_VERSION="4.4"
- export NODE_VERSION="0.10"
matrix:
fast_finish: true
allow_failures:
- env: NODE_VERSION="0.10"
- env: NODE_VERSION="iojs"
before_install:
- git clone https://github.com/creationix/nvm.git ./.nvm
- source ./.nvm/nvm.sh
- nvm install $NODE_VERSION 64
- echo $NODE_VERSION
- nvm use $NODE_VERSION
- 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
- BUILD_ONLY=true npm install --build-from-source
before_script:
- git config --global user.name "Ion Lupascu"
- git config --global user.email ionlupascu@gmail.com
after_script:
- node-pre-gyp configure
- node-pre-gyp build package
- node-pre-gyp configure
- node-pre-gyp build package --target_arch=ia32
- npm test
# Need S3 Upload for Artifacts
# addons:
# artifacts:
# debug: true
# paths:
# - ./build/stage/**/*.tar.gz
git:
depth: 1
branches:
only:
- master
os:
- linux
- osx
script: npm test