forked from raden/KTAB
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
165 lines (151 loc) · 4.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
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
language: cpp
matrix:
include:
- os: osx
compiler: gcc
env:
- C_COMPILER=gcc
- CXX_COMPILER=g++
- os: osx
compiler: clang
env:
- C_COMPILER=clang
- C_COMPILER=clang++
- os: linux
dist: trusty
compiler: gcc
branches:
only:
- master
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.9
env:
- C_COMPILER=gcc-4.9
- CXX_COMPILER=g++-4.9
- os: linux
dist: trusty
compiler: gcc
branches:
only:
- master
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-5
env:
- C_COMPILER=gcc-5
- CXX_COMPILER=g++-5
- os: linux
dist: trusty
compiler: gcc
branches:
only:
- master
- testing
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-6
env:
- C_COMPILER=gcc-6
- CXX_COMPILER=g++-6
- os: linux
dist: trusty
compiler: gcc
branches:
only:
- master
- testing
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-7
env:
- C_COMPILER=gcc-7
- CXX_COMPILER=g++-7
- os: linux
dist: trusty
compiler: clang
branches:
only:
- master
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.5
packages:
- g++-4.9
- clang-3.5
env:
- C_COMPILER=clang-3.5
- CXX_COMPILER=clang++-3.5
- os: linux
dist: trusty
compiler: clang
branches:
only:
- master
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.6
packages:
- g++-4.9
- clang-3.6
env:
- C_COMPILER=clang-3.6
- CXX_COMPILER=clang++-3.6
before_install:
# necessary because Travis overwrites CXX and CC!
- if [[ $TRAVIS_OS_NAME == linux ]]; then export CXX=$CXX_COMPILER CC=$C_COMPILER; fi
install:
#Linux Prerequisites
- if [[ $TRAVIS_OS_NAME == linux ]]; then sudo apt-get install qt5-default; fi #install Qt5 libraries
- if [[ $TRAVIS_OS_NAME == linux ]]; then sudo bash ./install-linux-deps.sh; fi # Why do I need permission?
#OS X Prerequisties
- if [[ $TRAVIS_OS_NAME == osx ]]; then bash ./install-osx-deps.sh; fi #install Qt5 libraries
- if [[ $TRAVIS_OS_NAME == osx ]]; then export PATH=$PATH:/usr/local/opt/qt/lib/cmake && ls; fi #Add Qt to system path
- if [[ $TRAVIS_OS_NAME == osx ]]; then export CFLAGS=-I/opt/X11/include && export LDFLAGS=-L/opt/X11/lib; fi #Add proper X11 libs to system path
# install tinyxml2
- git clone https://github.com/leethomason/tinyxml2.git
- cd tinyxml2
- cmake . -DBUILD_SHARED_LIBS:BOOL=OFF -DBUILD_STATIC_LIBS:BOOL=ON -DCMAKE_CXX_FLAGS=-fPIC && sudo make install
# install and build Elpp
- cd $TRAVIS_BUILD_DIR
# creating a dir to clone and build Elpp (Created due to name conflict with original folder "easyloggingpp"
- mkdir temp_elpp
- cd temp_elpp
- git clone https://github.com/muflihun/easyloggingpp.git
- mv $TRAVIS_BUILD_DIR/easyloggingpp/CMakeLists.txt $TRAVIS_BUILD_DIR/temp_elpp/easyloggingpp
- cd easyloggingpp
- mkdir build
- cd build
- cmake ..
- cmake --build .
- sudo make install
- cd $TRAVIS_BUILD_DIR
before_script:
#Set the script to execute
- chmod a+x reconfig.sh
- chmod a+x KTAB_Test_Apps.sh
- chmod a+x ./examples/smp/SMPC_RefRuns_Compare.sh
script:
- ./reconfig.sh
after_success:
- ./KTAB_Test_Apps_Travis.sh > ./ktab.log
- cd $TRAVIS_BUILD_DIR/examples/smp
- ./SMPC_RefRuns_Compare.sh > ./smp.log
- cat ../../ktab.log
- cat ./smp.log