forked from kobalicek/mathpresso
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
52 lines (44 loc) · 1.33 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
language: cpp
os: [linux, osx]
compiler: [gcc, clang]
addons:
apt:
packages: [cmake, gcc-multilib, g++-multilib]
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
- |
mkdir -p deps/asmjit
git clone --depth=1 https://github.com/asmjit/asmjit.git deps/asmjit
before_script:
- mkdir build
- cd build
- cmake --version
- cmake .. -G"Unix Makefiles" -DCMAKE_BUILD_TYPE="$BUILD_TYPE" -DASMJIT_DIR="../deps/asmjit" -DMATHPRESSO_BUILD_TEST=1
- cd ..
script:
- cd build
- make
- cd ..
- ./build/mptest --verbose
after_success:
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then valgrind --leak-check=full --show-reachable=yes ./build/mptest; fi;