forked from xuxiaowei007/teemo-1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (39 loc) · 1.03 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
language: cpp
sudo: required
matrix:
include:
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-7
compiler: gcc
env:
- WITH_TEST=yes
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7"
before_install:
- eval "${MATRIX_EVAL}"
install:
- cmake --version
- g++ -v
script:
- cmake . -DBUILD_SHARED_LIBS=ON -DBUILD_TESTS=ON -DCMAKE_TOOLCHAIN_FILE=~/vcpkg/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-linux
- make
before_script:
- |
if [ "$TRAVIS_OS_NAME" = linux ]; then
(
cd $HOME &&
git clone --depth 1 -b master https://github.com/microsoft/vcpkg.git vcpkg &&
cd vcpkg &&
./bootstrap-vcpkg.sh &&
./vcpkg install curl[non-http]:x64-linux
if [ "$WITH_TEST" = "yes" ]; then
./vcpkg install gtest:x64-linux
fi
)
fi
notifications:
email: false