forked from vmware-archive/gpos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
44 lines (39 loc) · 1.09 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
os:
- linux
- osx
language: c
sudo: required
cache: ccache
install:
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then
wget --no-check-certificate http://www.cmake.org/files/v3.3/cmake-3.3.2-Linux-i386.tar.gz
&& tar -xzf cmake-3.3.2-Linux-i386.tar.gz
&& sudo cp -fR cmake-3.3.2-Linux-i386/* /usr
&& sudo apt-add-repository -y ppa:ubuntu-toolchain-r/test
&& sudo apt-add-repository -y ppa:beineri/opt-qt542
&& sudo apt-get -qq update
&& sudo apt-get -qq install g++-4.8 libc6-i386 qt54location qt54multimedia qt54sensors qt54svg qt54tools qt54webchannel qt54webkit
&& export CXX="g++-4.8"
&& export CC="gcc-4.8"
;
else
brew update
&& brew unlink cmake
&& brew install cmake qt5
&& chmod -R 755 /usr/local/opt/qt5/*
;
fi
script:
- cd ${TRAVIS_BUILD_DIR}
- mkdir build
- cd build
- cmake -DCMAKE_INSTALL_PREFIX=${TRAVIS_BUILD_DIR}/build/install ../
- make -j4
- ctest -j4
- make install
notificastions:
email:
recipients:
on_success: change
on_failure: always