forked from martinluk/fzdb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (35 loc) · 835 Bytes
/
.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
language: cpp
sudo: required
dist: trusty
cache:
apt: true
directories:
- build/external
compiler:
- gcc
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/64463f491a9781e3b19b
on_success: always # default: always
on_failure: always # default: always
on_start: never # default: always
install:
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- sudo apt-get update -y
- sudo apt-get install -y g++-4.9
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.9" CC="gcc-4.9"; fi
- gcc --version
- cmake --version
- mkdir -p build
- cd build
- cmake .. -DCMAKE_BUILD_TYPE=DEBUG
script:
- cmake --build .
- ctest -V -C debug
- ./fzdb > ../fzdb.log &
- cd ../ #Back to project root to run npm test
- npm install
- npm test
after_script:
- cat fzdb.log