forked from Cryptonomic/Arronax
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
61 lines (57 loc) · 1.35 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
sudo: true
matrix:
include:
- os: osx
osx_image: xcode9.4
language: node_js
node_js:
- 10
- os: linux
services: docker
language: node_js
node_js:
- 10
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- libudev-dev
- g++-4.8
- icnsutils
- graphicsmagick
- xz-utils
- xorriso
- rpm
- g++-4.8-multilib
- gcc-multilib
- libusb-1.0-0-dev
cache:
yarn: true
directories:
- node_modules
install:
- npm install
# On Linux, initialize "virtual display". See before_script
- |
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
/sbin/start-stop-daemon \
--start \
--quiet \
--pidfile /tmp/custom_xvfb_99.pid \
--make-pidfile \
--background \
--exec /usr/bin/Xvfb \
-- :99 -ac -screen 0 1280x1024x16
else
:
fi
before_script:
# On Linux, create a "virtual display". This allows browsers to work properly
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export DISPLAY=:99.0; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sh -e /etc/init.d/xvfb start; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sleep 3; fi
script:
- node --version
- unset CI
- npm run build