-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path.travis.yml
45 lines (40 loc) · 1.46 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
matrix:
include:
- os: osx
- os: linux
dist: trusty
sudo: required
services: docker
language: cpp
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install boost || true; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew install yaml-cpp || true;
fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install python || true; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then pip2 install tabulate; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
docker pull ubuntu:16.04;
fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
docker run -w /root --name test -d ubuntu:16.04 sleep infinity;
fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
docker cp . test:/root/janus;
fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
docker exec test apt-get update -qq;
fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
docker exec test apt-get install -y git pkg-config build-essential python-dev python-pip libgoogle-perftools-dev cmake;
fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
docker exec test pip install tabulate;
fi
install:
script:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ./waf configure build; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
docker exec test sh -c 'cd janus && cmake . && make';
fi