-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.travis.yml
154 lines (143 loc) · 4.17 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
# Written and placed in public domain by Jeffrey Walton
# DO NOT create top level (global) keys like env, arch, os, compiler.
# The top level/global keys invoke [unwanted] matrix expansion. Also
# see https://stackoverflow.com/q/58473000/608639 and
# https://docs.travis-ci.com/user/reference/overview/ and
# https://docs.travis-ci.com/user/multi-cpu-architectures and
# https://github.com/travis-ci/travis-yml/blob/master/schema.json.
language: cpp
dist: bionic
git:
depth: 5
# Use jobs rather than matrix since we are precisely
# specifying our test cases. Do not move any of the
# keys (env, os, arch, compiler, etc) into global.
# Putting them in global invokes the matrix expansion.
jobs:
include:
- name: Ubuntu Trusty, GCC, amd64
os: linux
arch: amd64
compiler: gcc
dist: trusty
- name: Ubuntu Trusty, Clang, amd64
os: linux
arch: amd64
compiler: clang
dist: trusty
- name: Ubuntu Xenial, GCC, amd64
os: linux
arch: amd64
compiler: gcc
dist: xenial
- name: Ubuntu Xenial, Clang, amd64
os: linux
arch: amd64
compiler: clang
dist: xenial
- name: Ubuntu Bionic, GCC, amd64
os: linux
arch: amd64
compiler: gcc
dist: bionic
- name: Ubuntu Bionic, Clang, amd64
os: linux
arch: amd64
compiler: clang
dist: bionic
- name: Ubuntu Bionic, GCC, arm64
os: linux
arch: arm64
compiler: gcc
dist: bionic
- name: Ubuntu Bionic, Clang, arm64
os: linux
arch: arm64
compiler: clang
dist: bionic
- name: Ubuntu Bionic, GCC, ppc64le
os: linux
arch: ppc64le
compiler: gcc
dist: bionic
- name: Ubuntu Bionic, Clang, ppc64le
os: linux
arch: ppc64le
compiler: clang
dist: bionic
env:
- CC=clang-8
- CXX=clang++-8
- name: Ubuntu Bionic, GCC, s390x
os: linux
arch: s390x
compiler: gcc
dist: bionic
- name: Ubuntu Bionic, Clang, s390x
os: linux
arch: s390x
compiler: clang
dist: bionic
env:
- CC=clang-8
- CXX=clang++-8
- name: OS X 10.14, XCode 11.2
os: osx
osx_image: xcode11.2
arch: amd64
- name: OS X 10.13, XCode 9.4
os: osx
osx_image: xcode9.4
arch: amd64
- name: OS X 10.11, XCode 7.3
os: osx
osx_image: xcode7.3
arch: amd64
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
before_script:
- |
if [ "$TRAVIS_OS_NAME" = "linux" ]; then
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A145
sudo apt-get update
sudo apt-get -y install autoconf automake libtool
fi
# 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
# Let travis clone cryptopp-autotools, clone cryptopp
# copy cryptopp-autotools to cryptopp, and then run
# the test script.
- |
cd ..
git clone https://github.com/weidai11/cryptopp.git
cp cryptopp-autotools/*.* cryptopp/
cd cryptopp
cp TestScripts/cryptest-autotools.sh .
script:
- |
bash cryptest-autotools.sh
# 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