-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
104 lines (96 loc) · 2.56 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
---
dist: xenial
language: c
addons:
apt:
packages:
- cmake
cache:
directories:
- "$HOME/cache"
compiler:
- gcc
env:
- OPENSSL_VERSION=OpenSSL_1_0_2-stable LIBSODIUM_VERSION="stable"
- OPENSSL_VERSION=OpenSSL_1_1_0-stable LIBSODIUM_VERSION="stable"
- OPENSSL_VERSION=OpenSSL_1_1_1-stable LIBSODIUM_VERSION="stable"
matrix:
include:
- env: OPENSSL_VERSION="native" LIBSODIUM_VERSION="native"
addons:
apt:
packages:
- openssl
- libssl-dev
- libsodium-dev
- env: >
DRELEASE_NAME="bionic"
DEPS_PACKAGES="openssl libssl1.1 libssl-dev"
OPENSSL_VERSION="packages"
LIBSODIUM_VERSION="native"
addons:
apt:
packages:
- cmake
- curl
- libsodium-dev
- tree
- env: >
DRELEASE_NAME="bionic"
DEPS_PACKAGES="openssl1.0 libssl1.0.0 libssl1.0-dev"
OPENSSL_VERSION="packages"
LIBSODIUM_VERSION="native"
addons:
apt:
packages:
- cmake
- curl
- libsodium-dev
- tree
- env: >
DRELEASE_NAME="xenial"
DEPS_PACKAGES="openssl libssl1.0.0 libssl-dev"
OPENSSL_VERSION="packages"
LIBSODIUM_VERSION="native"
addons:
apt:
packages:
- cmake
- curl
- libsodium-dev
- tree
allow_failures:
- env: OPENSSL_VERSION="native" LIBSODIUM_VERSION="native"
- env: >
DRELEASE_NAME="bionic"
DEPS_PACKAGES="openssl1.0 libssl1.0.0 libssl1.0-dev"
OPENSSL_VERSION="packages"
LIBSODIUM_VERSION="native"
- env: >
DRELEASE_NAME="xenial"
DEPS_PACKAGES="openssl libssl1.0.0 libssl-dev"
OPENSSL_VERSION="packages"
LIBSODIUM_VERSION="native"
before_install:
- source ./test/travis/conditional_builds.sh
- source ./test/travis/env_for_deps_packages.sh
install:
- case "$OPENSSL_VERSION" in
native) true ;;
packages) export OSSL_ROOT="${DPACKAGES_PREFIX}"; ;;
*)
export OSSL_ROOT="$HOME/cache/openssl/$OPENSSL_VERSION"; ;;
esac
- case "$LIBSODIUM_VERSION" in
native) true ;;
packages) export LIBSODIUM_ROOT="${DPACKAGES_PREFIX}"; ;;
*)
export LIBSODIUM_ROOT="$HOME/cache/libsodium/$LIBSODIUM_VERSION"; ;;
esac
- env
- ./test/travis/install_deps.sh
before_script:
- ./test/travis/build_libsuola.sh
script:
- ./test/travis/test_libsuola_unit.sh
- ./test/travis/test_libsuola_integration.sh