-
Notifications
You must be signed in to change notification settings - Fork 44
/
.travis.yml
58 lines (47 loc) · 1.12 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
sudo: required
dist: trusty
language: cpp
env:
- export NODE_VERSION="6"
os:
- linux
- osx
matrix:
fast_finish: true
cache:
directories:
- node_modules
notifications:
email: false
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
packages:
- xvfb
before_install:
- git submodule update --init --recursive
- git clone https://github.com/creationix/nvm.git ./.nvm
- source ./.nvm/nvm.sh
- nvm install $NODE_VERSION
- nvm use $NODE_VERSION
- npm config set python `which python`
install:
- export CXX="g++-4.8"
- npm install -g npm@latest --loglevel=warn
- npm install --loglevel=warn
- 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";
export DISPLAY=':99.0';
Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 & echo "nothing";
fi
before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start &
- sleep 3
script:
- node --version
- npm --version
- npm run build