forked from erikzenker/hsm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
36 lines (36 loc) · 834 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
34
35
36
language: cpp
dist: bionic
addons:
apt:
sources:
- sourceline: 'ppa:ubuntu-toolchain-r/test'
packages:
- cmake
- lcov
- g++-9
- python-pip
compiler:
- gcc
os:
- linux
install:
- sudo pip install conan
script:
- export CXX=g++-9
- export CC=gcc-9
- export CODECOV_TOKEN="d3d577f7-24ba-43c6-aa89-efb6e47f07db"
- cd $TRAVIS_BUILD_DIR
- mkdir build && cd build
- mkdir install
- conan install ..
- cmake .. -DHSM_GCC_COVERAGE=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=install
- cmake --build . --target install
- ctest -VV
- ./bin/simple_sc
- ./bin/simple_euml
- ./bin/simple_hsm
- ./bin/complex_switch
- ./bin/complex_sc
- ./bin/complex_euml
- ./bin/complex_hsm
- bash <(curl -s https://codecov.io/bash) || echo 'Codecov failed to upload'