forked from todbot/Blink1Control2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
98 lines (85 loc) · 2.08 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
---
dist: trusty
language: cpp
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
- g++-4.8-multilib
- gcc-multilib
- libgtk2.0-0
- libxtst6
- libnotify4
- libgconf2-4
- libgtk2.0-0:i386
- libxtst6:i386
- libnotify4:i386
- libgconf2-4:i386
- libnss3:i386
- libasound2:i386
- libxss1:i386
- socat
- icnsutils
- graphicsmagick
- libusb-1.0-0:i386
- libusb-1.0-0-dev
- libudev-dev
# Build matrix
os:
- linux
- osx
env:
global:
matrix:
- TRAVIS_NODE_VERSION="8"
matrix:
exclude:
- os: osx
env: TRAVIS_NODE_VERSION="8" ARCH="x86"
cache:
directories:
- node_modules
- app/node_modules
- $HOME/.electron
- $HOME/.cache
before_install:
# suppress 'shell_session_update' error https://github.com/travis-ci/travis-ci/issues/6307
#- rvm get head
## reinstall latest nvm
#- rm -rf ~/.nvm && git clone https://github.com/creationix/nvm.git ~/.nvm && (cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`) && source ~/.nvm/nvm.sh
#
- nvm install $TRAVIS_NODE_VERSION
- PATH=$PATH:`pwd`/node_modules/.bin
- BASE_URL=$(node -p "'https://nodejs.org/dist/' + process.version")
- X86_FILE=$(node -p "'node-' + process.version + '-' + process.platform + '-x86'")
# download node if testing x86 architecture
- if [[ "$ARCH" == "x86" ]]; then wget $BASE_URL/$X86_FILE.tar.gz; tar -xf $X86_FILE.tar.gz; export PATH=$X86_FILE/bin:$PATH; fi
#- if [[ "$ARCH" == "x86" ]]; then export LDFLAGS=-L/lib/i386-linux-gnu ; fi
# print versions
- uname -a
- file `which node`
- node --version
- node -p 'process.platform + "@" + process.arch'
- npm --version
#- ldconfig -p | grep i386
# use g++-4.8 on Linux
#- if [[ $TRAVIS_OS_NAME == "linux" ]]; then export CXX=g++-4.8; fi
#- $CXX --version
# Cleanup the output of npm
- npm config set progress false
- npm config set spin false
install:
# ensure source install works
#- export V=1
- npm install
script:
- npm run pack
- npm run dist:draft
- echo "*** done. dist contents ***"
- ls -al dist
- echo "*** done. ***"
before_deploy:
deploy:
# skip_cleanup: true