-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
34 lines (31 loc) · 853 Bytes
/
.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
language: cpp
matrix:
include:
- os: osx
osx_image: xcode10.1
# compiler: clang
- os: linux
dist: bionic
before_install:
# MACOS
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
bash $TRAVIS_BUILD_DIR/scripts/install_deps_macos.sh;
fi
# LINUX
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
bash $TRAVIS_BUILD_DIR/scripts/install_deps_linux.sh;
fi
script:
- mkdir -p build
- cd build
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
export TOOLCHAIN_ARG="-DCMAKE_TOOLCHAIN_FILE=/Users/travis/vcpkg/scripts/buildsystems/vcpkg.cmake";
fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
export TOOLCHAIN_ARG="-DCMAKE_TOOLCHAIN_FILE=/home/travis/vcpkg/scripts/buildsystems/vcpkg.cmake";
fi
- cmake "$TOOLCHAIN_ARG" ..
- cmake --build .
cache:
directories:
- $HOME/travis_cache