forked from asmjit/asmjit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
55 lines (46 loc) · 1.56 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
53
54
55
language: cpp
os: [linux, osx]
compiler: [gcc, clang]
addons:
apt:
packages: [cmake, gcc-multilib, g++-multilib, valgrind]
sources: [ubuntu-toolchain-r-test]
env:
matrix:
- BUILD_TYPE=Debug CFLAGS=-m32 CXXFLAGS=-m32
- BUILD_TYPE=Debug CFLAGS=-m64 CXXFLAGS=-m64
- BUILD_TYPE=Release CFLAGS=-m32 CXXFLAGS=-m32
- BUILD_TYPE=Release CFLAGS=-m64 CXXFLAGS=-m64
matrix:
exclude:
- os: osx
compiler: gcc
install:
- |
if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
CMAKE_PACKAGE="https://cmake.org/files/v3.6/cmake-3.6.2-Linux-x86_64.tar.gz"
mkdir -p deps/cmake
wget --no-check-certificate --quiet -O - ${CMAKE_PACKAGE} | tar --strip-components=1 -xz -C deps/cmake
export PATH=${TRAVIS_BUILD_DIR}/deps/cmake/bin:${PATH}
else
brew update
brew outdated cmake || brew upgrade cmake
fi
before_script:
- mkdir build
- cd build
- cmake --version
- cmake .. -G"Unix Makefiles" -DCMAKE_BUILD_TYPE="$BUILD_TYPE" -DASMJIT_BUILD_TEST=1
- cd ..
script:
- cd build
- make
- cd ..
- ./build/asmjit_test_unit
- ./build/asmjit_test_opcode > /dev/null
- ./build/asmjit_test_x86_asm
- ./build/asmjit_test_x86_cc
after_success:
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then valgrind --leak-check=full --show-reachable=yes ./build/asmjit_test_unit; fi;
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then valgrind --leak-check=full --show-reachable=yes ./build/asmjit_test_x86_asm; fi;
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then valgrind --leak-check=full --show-reachable=yes ./build/asmjit_test_x86_cc; fi;