This repository has been archived by the owner on Apr 25, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 83
/
.travis.yml
56 lines (50 loc) · 1.49 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
language: c++
compiler: clang
env: CMAKE_BUILD_TYPE=RELEASE
branches:
only:
- master
- travis
os:
- linux
- osx
osx_image: xcode8.2
sudo: true
before_install: |
wget http://www.openssl.org/source/openssl-1.1.0e.tar.gz
tar xzvf openssl-1.1.0e.tar.gz
cd openssl-1.1.0e
./config
make
sudo make install
cd ..
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew update
brew install jpeg-turbo
export CMAKE_CXX_COMPILER=clang++
fi
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
curl -sSL 'http://llvm.org/apt/llvm-snapshot.gpg.key' | sudo -E apt-key add -
echo 'deb http://llvm.org/apt/precise/ llvm-toolchain-precise-3.8 main' | sudo tee -a /etc/apt/sources.list > /dev/null
sudo -E apt-add-repository -y 'ppa:ubuntu-toolchain-r/test'
sudo -E apt-add-repository -y 'ppa:kalakris/cmake'
sudo -E apt-add-repository -y "ppa:boost-latest/ppa"
sudo apt-get update
sudo apt-get install --force-yes \
cmake \
clang-3.8 \
libboost1.55-dev \
libboost-filesystem1.55-dev \
libboost-locale1.55-dev \
libssl-dev \
libpng-dev \
libjpeg-dev
export CMAKE_CXX_COMPILER=clang++-3.8
fi
script: |
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER} .. || exit 1
cmake --build . || exit 1
cd ..
./build/run_tests