-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
51 lines (46 loc) · 1.54 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
language: cpp
_osx_target: &osx_target
os: osx
osx_image: xcode9.4
env:
- QBDI_PLATFORM="osx"
- QBDI_ARCH="X86_64"
- CMAKE_ARGS="-DCMAKE_BUILD_TYPE=Release -DCMAKE_CROSSCOMPILING=FALSE -DQBDI_PLATFORM=${QBDI_PLATFORM} -DQBDI_ARCH=${QBDI_ARCH} -DQBDI_TOOLS_VALIDATOR=ON -DQBDI_EXAMPLES=ON"
before_script:
- HOMEBREW_NO_AUTO_UPDATE=1 brew install ccache python3
_osx_target32: &osx_target32
os: osx
osx_image: xcode9.4
env:
- QBDI_PLATFORM="osx"
- QBDI_ARCH="X86"
- CMAKE_ARGS="-DCMAKE_BUILD_TYPE=Release -DCMAKE_CROSSCOMPILING=FALSE -DQBDI_PLATFORM=${QBDI_PLATFORM} -DQBDI_ARCH=${QBDI_ARCH} -DQBDI_TOOLS_VALIDATOR=ON -DQBDI_EXAMPLES=ON"
before_script:
- HOMEBREW_NO_AUTO_UPDATE=1 brew install ccache python3
_compile_and_test: &compile_and_test
script:
- mkdir build && cd build
- cmake .. ${CMAKE_ARGS}
- eval '[[ -n "$(find ../deps/llvm/${QBDI_PLATFORM}-${QBDI_ARCH}/lib -type f -print -quit)" && -n "$(find ../deps/llvm/${QBDI_PLATFORM}-${QBDI_ARCH}/include -type f -print -quit)" ]] || make llvm'
- cmake .. ${CMAKE_ARGS}
- make -j2
- ./test/QBDITest
before_cache:
# Reduce cache size
- python3 ../deps/llvm/build.py clean ${QBDI_PLATFORM}-${QBDI_ARCH}
cache:
apt: TRUE
ccache: TRUE
directories:
- deps/llvm/osx-X86_64/include
- deps/llvm/osx-X86_64/lib
- deps/llvm/osx-X86/include
- deps/llvm/osx-X86/lib
jobs:
include:
- stage: qbdi
<<: *osx_target
<<: *compile_and_test
- stage: qbdi
<<: *osx_target32
<<: *compile_and_test