-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
55 lines (41 loc) · 1.02 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
sudo: required
dist: trusty
language: node_js
node_js:
- "6"
env:
- TEST_DIR=server
- TEST_DIR=webapp
cache:
directories:
- server/node_modules
- webapp/node_modules
notifications:
slack: quantum-bits:qYEIHmdw3vBD1Q3XRxh2neXY
email: false
services:
- postgresql
addons:
postgresql: "9.4"
before_install:
- sudo apt-get install python-software-properties
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
- sudo apt-get update
- sudo apt-get --assume-yes install gcc-5 g++-5
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 80 --slave /usr/bin/g++ g++ /usr/bin/g++-5
- sudo update-alternatives --set gcc /usr/bin/gcc-5
#install:
before_script:
- psql -U postgres -c 'create database faraday;'
- psql -U postgres -c "create role faraday login password 'pass';"
- postgres -V
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
script:
- cd $TEST_DIR && ./run-tests.sh
#after_success:
#after_failure:
#before_deploy:
#deploy:
#after_deploy:
#after_script: