forked from noloader/cryptopp-cmake
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
183 lines (158 loc) · 4.28 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
language: cpp
dist: bionic
git:
depth: 5
jobs:
include:
# Ubuntu Bionic
- name: Ubuntu Bionic, GCC, CMake 3.12.4
os: linux
compiler: gcc
dist: bionic
- name: Ubuntu Bionic, Clang, CMake 3.12.4
os: linux
compiler: clang
dist: bionic
# Ubuntu Xenial
- name: Ubuntu Xenial, GCC, CMake 3.9.2
os: linux
compiler: gcc
dist: xenial
- name: Ubuntu Xenial, Clang, CMake 3.9.2
os: linux
compiler: clang
dist: xenial
# Ubuntu Trusty
- name: Ubuntu Trusty, GCC, CMake 2.8.12
os: linux
compiler: gcc
dist: trusty
- name: Ubuntu Trusty, Clang, CMake 2.8.12
os: linux
compiler: clang
dist: trusty
# ARM64
- name: Ubuntu Bionic, GCC, ARM64, CMake 3.10.2
os: linux
arch: arm64
compiler: gcc
dist: bionic
- name: Ubuntu Bionic, Clang, ARM64, CMake 3.10.2
os: linux
arch: arm64
compiler: clang
dist: bionic
# PPC64
- name: Ubuntu Bionic, GCC, PPC64, CMake 3.5.1
os: linux
arch: ppc64le
compiler: gcc
dist: bionic
- name: Ubuntu Bionic, Clang, PPC64, CMake 3.10.2
os: linux
arch: ppc64le
compiler: clang
dist: bionic
env:
- CC=clang-8
- CXX=clang++-8
# s390x
- name: Ubuntu Bionic, GCC, s390x, CMake 3.5.1
os: linux
arch: s390x
compiler: gcc
dist: bionic
- name: Ubuntu Bionic, Clang, s390x, CMake 3.10.2
os: linux
arch: s390x
compiler: clang
dist: bionic
env:
- CC=clang-8
- CXX=clang++-8
# Newest Xcode available
- name: OS X 10.14, Clang, XCode 11.2, CMake 3.17.0
os: osx
osx_image: xcode11.2
arch: amd64
- name: OS X 10.13, Clang, XCode 9.4, CMake 3.15.5
os: osx
osx_image: xcode9.4
arch: amd64
# Oldest Xcode available
- name: OS X 10.11, Clang, XCode 7.3, CMake 3.2.2
os: osx
osx_image: xcode7.3
arch: amd64
# Ubuntu Bionic, GCC, No-asm
- name: Ubuntu Bionic, GCC, No-Asm
os: linux
compiler: gcc
dist: bionic
script:
# Override the default script
- cmake -DCMAKE_C_COMPILER="$CC" -DCMAKE_CXX_COMPILER="$CXX" -DDISABLE_ASM=1 ../
- make -k -j 2 VERBOSE=1
- ctest --output-on-failure
- ./cryptest.exe v
# Ubuntu Bionic, Clang, No-asm
- name: Ubuntu Bionic, Clang, No-Asm
os: linux
compiler: clang
dist: bionic
script:
# Override the default script
- cmake -DCMAKE_C_COMPILER="$CC" -DCMAKE_CXX_COMPILER="$CXX" -DDISABLE_ASM=1 ../
- make -k -j 2 VERBOSE=1
- ctest --output-on-failure
- ./cryptest.exe v
allow_failures:
# Clang 7.0 and below will likely have trouble due to
# https://bugs.llvm.org/show_bug.cgi?id=39704
- arch: ppc64le
compiler: clang
# Clang has a fair amount of trouble
# on platforms Apple does not support
- arch: s390x
compiler: clang
#
# Build Dependencies
#
before_install:
- |
# Clang 7 compiler is completely broken on PPC64 and s390x
if [[ "$TRAVIS_CPU_ARCH" == "ppc64le" ]] || [[ "$TRAVIS_CPU_ARCH" == "s390x" ]]; then
if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$TRAVIS_COMPILER" == "clang" ]]; then
# https://github.com/travis-ci/travis-ci/issues/9037
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A145
sudo apt-get -qq -y install --no-install-recommends clang-8
fi
fi
before_script:
# Clone Crypto++, prepare build with Cmake
- |
cd ..
git clone https://github.com/weidai11/cryptopp.git cryptopp
cp cryptopp-cmake/*.* cryptopp
cd cryptopp
mkdir cmake_build
cd cmake_build
script:
# CMake is being run from .../cryptopp/cmake_build/ directory
- cmake -DCMAKE_C_COMPILER="$CC" -DCMAKE_CXX_COMPILER="$CXX" ../
- make -k -j 2 VERBOSE=1
- ctest --output-on-failure
- ./cryptest.exe v
addons:
- sonarcloud: false
# Whitelist branches to avoid testing feature branches twice
branches:
only:
- master
- /\/ci$/
notifications:
email:
recipients:
- cryptopp-build@googlegroups.com
on_success: always # default: change
on_failure: always # default: always