-
Notifications
You must be signed in to change notification settings - Fork 111
/
.travis.yml
52 lines (47 loc) · 1.78 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
language : cpp
matrix:
include:
- os: osx
osx_image: xcode9.1
compiler: clang
- os: linux
env: CLANG_VERSION=5.0 BUILD_TYPE=Debug
addons: &clang5
apt:
packages:
- g++-6
- clang-5.0
- libx11-dev
- libxfixes-dev
- libxtst-dev
- libxext-dev
- libxinerama-dev
- nasm
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise
before_install:
- if [[ -n "$CLANG_VERSION" ]]; then export CXX=clang++-$CLANG_VERSION CC=clang-$CLANG_VERSION; fi
- |
if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
CMAKE_URL="https://cmake.org/files/v3.9/cmake-3.9.6-Linux-x86_64.tar.gz"
mkdir -p ${TRAVIS_BUILD_DIR}/deps/cmake && travis_retry wget --no-check-certificate --quiet -O - "${CMAKE_URL}" | tar --strip-components=1 -xz -C ${TRAVIS_BUILD_DIR}/deps/cmake
export PATH="${TRAVIS_BUILD_DIR}/deps/cmake/bin:${PATH}";
else
brew update && brew upgrade cmake || brew install cmake;
brew install openssl zlib libjpeg-turbo;
fi
- npm install -g typescript electron @angular/cli@latest;
script:
- mkdir build
- cd build
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then
cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DBUILD_SHARED_LIBS=ON -DCMAKE_CXX_COMPILER="$CXX" -DCMAKE_C_COMPILER="$CC" -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl .. && make;
else
cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DBUILD_SHARED_LIBS=ON -DCMAKE_CXX_COMPILER="$CXX" -DCMAKE_C_COMPILER="$CC" .. && make;
ctest -V -C Debug;
cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DBUILD_SHARED_LIBS=OFF -DCMAKE_CXX_COMPILER="$CXX" -DCMAKE_C_COMPILER="$CC" .. && make;
ctest -V -C Debug;
fi
notifications:
email: false