forked from xaptum/xtt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
78 lines (72 loc) · 2.32 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
70
71
72
73
74
75
76
77
78
# Copyright 2018 Xaptum, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License
language: c
compiler: gcc
env:
global:
- INSTALL_PREFIX=${TRAVIS_BUILD_DIR}/usr
- CMAKE_PREFIX_PATH=${INSTALL_PREFIX}
- LIBSODIUM_TAG=1.0.11
- LIBSODIUM_DIR=${TRAVIS_BUILD_DIR}/libsodium
- AMCL_TAG=4.7.3
- AMCL_DIR=${TRAVIS_BUILD_DIR}/amcl/install
- XAPTUM_TPM_TAG=v0.5.8
- XAPTUM_TPM_DIR=${TRAVIS_BUILD_DIR}/xaptum-tpm/
- AMCL_CURVES=FP256BN,NIST256
- ECDAA_TAG=v0.10.0
- ECDAA_DIR=${TRAVIS_BUILD_DIR}/ecdaa
- SHARED_LIBS=ON
- XTT_INSTALL_DIR=${TRAVIS_BUILD_DIR}/install
before_script:
- .travis/install-libsodium.sh ${LIBSODIUM_TAG} ${LIBSODIUM_DIR}
- .travis/install-xaptum-tpm.sh ${XAPTUM_TPM_TAG} ${XAPTUM_TPM_DIR}
- .travis/install-amcl.sh ${AMCL_TAG} ${AMCL_DIR} ${AMCL_CURVES}
- .travis/install-ecdaa.sh ${ECDAA_TAG} ${ECDAA_DIR}
- mkdir -p ${XTT_INSTALL_DIR}
- cmake . -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DCMAKE_INSTALL_PREFIX=${XTT_INSTALL_DIR} -DBUILD_SHARED_LIBS=${SHARED_LIBS}
script:
- cmake --build . --target install -- -j2
- ctest -E tpm -VV
matrix:
include:
- name: "Dev build, gcc"
env:
- TYPE=DEV
- BUILD_TYPE=Dev
- name: "DevDebug build, gcc"
env:
- TYPE=DEBUG
- BUILD_TYPE=DevDebug
- name: "Release build, gcc"
env:
- TYPE=RELEASE
- BUILD_TYPE=Release
- name: "Build with static library, gcc"
env:
- SHARED_LIBS=OFF
- name: "Debug build, gcc"
env:
- TYPE=DEBUG
- BUILD_TYPE=Debug
- name: "Release build, clang"
compiler: clang
env:
- TYPE=RELEASE-WITH-CLANG
- BUILD_TYPE=Release
- name: "Sanitize build, clang"
sudo: true
compiler: clang
env:
- TYPE=SANITIZE
- BUILD_TYPE=RelWithSanitize