-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
executable file
·85 lines (83 loc) · 1.89 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
language: cpp
env:
global:
#- DEPS_DIR=${TRAVIS_BUILD_DIR}/deps
matrix:
include:
# works on Precise and Trusty
- os: linux
sudo: true
#dist: "xenial"
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-8
env:
- MATRIX_EVAL="CC=gcc-8 && CXX=g++-8"
- os: osx
osx_image: xcode8.3
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/833f2fca8ab17c49d455
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: never # options: [always|never|change] default: always
install:
- |
if [ $TRAVIS_OS_NAME = linux ]; then
sudo apt-get install libboost-dev libssl-dev libxml2-dev bluez zlib1g-dev cmake-data
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 20
fi
if [ $TRAVIS_OS_NAME = osx ]; then
brew install boost
fi
pwd
cd ..
pwd
script:
- |
g++ -v
cd ${TRAVIS_BUILD_DIR}
cd ..
git clone --depth=1 https://[email protected]/necktwi/ferrybase.git
cd ferrybase
mkdir -p build
cd build
if [ $TRAVIS_OS_NAME = linux ]; then
cmake ..
make
fi
if [ $TRAVIS_OS_NAME = osx ]; then
cmake .. -G Xcode
xcodebuild
fi
pwd
cd ${TRAVIS_BUILD_DIR}
cd ..
git clone --depth=1 https://[email protected]/necktwi/logger.git
cd logger
mkdir -p build
cd build
if [ $TRAVIS_OS_NAME = linux ]; then
cmake ..
make
fi
if [ $TRAVIS_OS_NAME = osx ]; then
cmake .. -G Xcode
xcodebuild
fi
pwd
cd ${TRAVIS_BUILD_DIR}
mkdir -p build
cd build
if [ $TRAVIS_OS_NAME = linux ]; then
cmake ..
make
fi
if [ $TRAVIS_OS_NAME = osx ]; then
cmake .. -G Xcode
xcodebuild
fi