-
Notifications
You must be signed in to change notification settings - Fork 15
/
.travis.yml
33 lines (27 loc) · 998 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
language: cpp
os: linux
dist: bionic
git:
submodules: false
compiler:
- gcc
# - clang
before_install:
# Latest Catch2
- git clone --depth 1 --branch v2.x https://github.com/catchorg/Catch2.git Catch2
- cmake -BCatch2/build -HCatch2 -DBUILD_TESTING=OFF -DCATCH_INSTALL_DOCS=OFF
- sudo env "PATH=$PATH" cmake --build Catch2/build --target install
# Latest Eigen
- git clone --depth 1 https://gitlab.com/libeigen/eigen.git Eigen
- cmake -BEigen/build -HEigen -DBUILD_TESTING=OFF
- sudo env "PATH=$PATH" cmake --build Eigen/build --target install
script:
- cmake -H. -Bbuild -DCMAKE_BUILD_TYPE:STRING=Debug -DENABLE_COVERAGE:BOOL=TRUE -DENABLE_TESTING:BOOL=TRUE -DENABLE_OSQP:BOOL=TRUE -DENABLE_ECOS:BOOL=TRUE
- cmake --build build --config Debug --target run_tests -- -j$(nproc)
- ./build/run_tests
after_success:
- pyenv global 3.6
- pip install --user codecov
- codecov
- ls build/CMakeFiles/run_tests.dir/tests/
- bash <(curl -s https://codecov.io/bash)