-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (33 loc) · 956 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
35
36
37
language: cpp
matrix:
include:
- os: windows
env: PW_SHARED=ON PW_STATIC=OFF
- os: windows
env: PW_SHARED=OFF PW_STATIC=ON
# - os: linux
# dist: bionic
# compiler: clang
# env: PW_SHARED=OFF PW_STATIC=ON
- os: linux
dist: bionic
compiler: gcc
env: PW_SHARED=OFF PW_STATIC=ON
- os: linux
dist: bionic
compiler: gcc
env: PW_SHARED=ON PW_STATIC=OFF
- os: osx
env: PW_SHARED=ON PW_STATIC=OFF
- os: osx
env: PW_SHARED=OFF PW_STATIC=ON
before_install:
- if [ $TRAVIS_OS_NAME == linux ]; then sudo apt-get install gcc-8 g++-8 ; fi
before_script:
- mkdir build
- cd build
- if [ $TRAVIS_OS_NAME == linux ]; then export CC=gcc-8 ; fi
- if [ $TRAVIS_OS_NAME == linux ]; then export CXX=g++-8 ; fi
- cmake .. -DPW_BUILD_EXAMPLES=ON -DPW_INCLUDE_FALLBACK=ON -DPW_BUILD_STATIC=$PW_STATIC -DPW_BUILD_SHARED=$PW_SHARED
script:
- cmake --build .