-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
69 lines (67 loc) · 1.99 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
language: cpp
jobs:
include:
- os: osx
osx_image: xcode11.2
compiler: gcc
env:
- MATRIX_EVAL="CC=gcc-9 && CXX=g++-9"
- LIBCXX=libstdc++11
- BLDTYPE=Release
- PATH="${HOME}/Library/Python/2.7/bin:${PATH}"
- os: osx
osx_image: xcode11.2
compiler: clang
env:
- MATRIX_EVAL=""
- LIBCXX=libc++
- BLDTYPE=Release
- PATH="${HOME}/Library/Python/2.7/bin:${PATH}"
- os: linux
dist: bionic
compiler: gcc
env:
- MATRIX_EVAL="CC=gcc && CXX=g++"
- LIBCXX=libstdc++11
- BLDTYPE=Debug
- EXTRA_CMAKE="-DSIMDEE_ENABLE_SANITIZER_UNDEFINED:BOOL=ON"
- os: linux
dist: bionic
compiler: clang
env:
- MATRIX_EVAL="CC=clang && CXX=clang++"
- LIBCXX=libstdc++11
- BLDTYPE=Release
- os: linux
arch: arm64
dist: bionic
env:
- MATRIX_EVAL="CC=gcc && CXX=g++"
- LIBCXX=libstdc++11
- BLDTYPE=Debug
- EXTRA_CMAKE="-DSIMDEE_ENABLE_SANITIZER_ADDRESS:BOOL=ON"
- os: linux
dist: bionic
compiler: gcc
env:
- MATRIX_EVAL="CC=gcc && CXX=g++"
- LIBCXX=libstdc++11
- BLDTYPE=Debug
- EXTRA_CMAKE="-DSIMDEE_ENABLE_COVERAGE:BOOL=ON -DSIMDEE_INSTRUCTION_SET=AVX2"
before_script:
- pip install --user cpp-coveralls
after_success:
- cd ..
- bash <(curl -s https://codecov.io/bash) -x /usr/bin/gcov
- coveralls --exclude bench --exclude test --gcov-options '\-lp'
before_install:
- eval "${MATRIX_EVAL}"
script:
- mkdir build
- cd build
- pip install --user conan
- conan remote add catchorg https://api.bintray.com/conan/catchorg/Catch2
- conan install -s build_type=${BLDTYPE} -s compiler.libcxx=${LIBCXX} ..
- cmake -DCMAKE_BUILD_TYPE=${BLDTYPE} -DSIMDEE_BUILD_TESTS:BOOL=ON ${EXTRA_CMAKE} ..
- cmake --build .
- test/simdee-test # running the test executable directly provides sanitizer output