-
Notifications
You must be signed in to change notification settings - Fork 23
/
.travis.yml
46 lines (40 loc) · 1.43 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
language: cpp
compiler:
- gcc
dist: xenial
os: linux
env:
global:
- OPENSSL_VERSION="1.1.1f"
OPENSSL_INSTALL_DIR="${HOME}/opt"
jobs:
- USE_CONTEXT=ON
COVERALLS="-DCOSE_C_COVERALLS_SEND=ON -DCOSE_C_INCLUDE_COUNTERSIGN=ON -DCOSE_C_INCLUDE_COUNTERSIGN1=ON"
- USE_CONTEXT=OFF
COVERALLS="-DCOSE_C_COVERALLS_SEND=ON -DCOSE_C_INCLUDE_COUNTERSIGN=ON -DCOSE_C_INCLUDE_COUNTERSIGN1=ON"
- USE_CONTEXT=OFF USE_EMBEDTLS=ON
COVERALLS="-DCOSE_C_COVERALLS_SEND=ON -DCOSE_C_INCLUDE_COUNTERSIGN=ON -DCOSE_C_INCLUDE_COUNTERSIGN1=ON"
- USE_CONTEXT=ON USE_EMBEDTLS=ON
COVERALLS="-DCOSE_C_COVERALLS_SEND=ON -DCOSE_C_INCLUDE_COUNTERSIGN=ON -DCOSE_C_INCLUDE_COUNTERSIGN1=ON"
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.8
- george-edison55-precise-backports
packages:
- cmake
- cmake-data
before_install:
- pip install cpp-coveralls --user
- export LD_LIBRARY_PATH=$PWD/build/dist/lib:$LD_LIBRARY_PATH
- bash .ci/build-openssl.sh > build-deps.log 2>&1 || (cat build-deps.log && exit 1)
script:
# - apt-get install libssl1.1.0
- export OPENSSL_ROOT_DIR=${OPENSSL_INSTALL_DIR}
- cmake --version
- git clone --depth 1 git://github.com/cose-wg/Examples Examples
- mkdir build
- cd build && cmake -DCOSE_C_USE_CONTEXT=$USE_CONTEXT -DCOSE_C_USE_MBEDTLS=$USE_EMBEDTLS $CMAKE_OPTIONS $COVERALLS .. && make -k all test
after_success:
- make coveralls