]> git.ipfire.org Git - thirdparty/openssl.git/blame - .travis.yml
Configure: Avoid SIXTY_FOUR_BIT for linux-mips64
[thirdparty/openssl.git] / .travis.yml
CommitLineData
fbc6efbb 1dist: bionic
703324a7 2
46cc9f35
AP
3osx_image: xcode9.3
4
66c103bd 5language: c
bd5fbfe2 6cache: ccache
22df22e7
AP
7git:
8 submodules: false
b1bebbcb 9 quiet: true
66c103bd 10
ad0a0a3a 11before_install:
b3943604 12 - if [ -n "$COVERALLS" ]; then
cde63b73 13 travis_retry pip install --user cpp-coveralls;
b3943604 14 fi;
22df22e7 15 - if expr "$CONFIG_OPTS" ":" ".*enable-external-tests" > /dev/null; then
cde63b73 16 travis_retry git submodule update --init --recursive;
22df22e7 17 fi;
77fedcdc
FF
18 - eval "${MATRIX_EVAL}"
19
20arch:
21 - amd64
ad0a0a3a 22
66c103bd 23os:
db9defdf 24 - linux
a6da6b73 25 - osx
66c103bd
AG
26
27compiler:
db9defdf
RS
28 - clang
29 - gcc
66c103bd
AG
30
31env:
fbc6efbb 32 # Note: env entry here must exactly match the value in the exclude: table below that contains env:, otherwise it will not find a match.
5d322036 33 - CONFIG_OPTS="" DESTDIR="_install"
16e3588d 34 - CONFIG_OPTS="no-asm --debug --strict-warnings no-afalgeng no-shared enable-rc5 enable-md2 -fsanitize=address" LSAN_OPTIONS="report_objects=1"
a3ab4d63 35 - CONFIG_OPTS="no-asm no-makedepend enable-buildtest-c++ --strict-warnings -D_DEFAULT_SOURCE" BUILDONLY="yes" CHECKDOCS="yes" CPPFLAGS="-ansi"
db9defdf 36
fbc6efbb
TM
37jobs:
38 exclude:
77fedcdc 39 - os: linux
77fedcdc 40 compiler: clang
fbc6efbb 41 env: CONFIG_OPTS="" DESTDIR="_install"
77fedcdc 42 - os: linux
77fedcdc 43 compiler: clang
a3ab4d63 44 env: CONFIG_OPTS="no-asm no-makedepend enable-buildtest-c++ --strict-warnings -D_DEFAULT_SOURCE" BUILDONLY="yes" CHECKDOCS="yes" CPPFLAGS="-ansi"
fbc6efbb
TM
45 - os: osx
46 compiler: gcc
47 - os: osx
16e3588d 48 env: CONFIG_OPTS="no-asm --debug --strict-warnings no-afalgeng no-shared enable-rc5 enable-md2 -fsanitize=address" LSAN_OPTIONS="report_objects=1"
fbc6efbb 49 include:
7d726440
TM
50 - os: linux
51 arch: arm64
52 compiler: gcc
fbc6efbb 53 env: CONFIG_OPTS="--strict-warnings" MAKEVERBOSE="yes"
7d726440
TM
54 - os: linux
55 arch: arm64
56 compiler: gcc
52698fbf 57 env: CONFIG_OPTS="no-asm no-makedepend no-deprecated enable-buildtest-c++ --strict-warnings -D_DEFAULT_SOURCE" BUILDONLY="yes" CHECKDOCS="yes" GENERATE="yes" CPPFLAGS="-ansi"
985412f8
PS
58 - os: linux
59 arch: s390x
60 compiler: gcc
61 env: CONFIG_OPTS="--strict-warnings"
13da3ad0 62 - os: linux-ppc64le
7d726440
TM
63 compiler: gcc
64 env: CONFIG_OPTS="--strict-warnings"
b169c0ec 65 - os: linux
16161a30 66 compiler: gcc
d819760d 67 env: CONFIG_OPTS="--strict-warnings no-ec enable-trace enable-ssl-trace enable-zlib enable-zlib-dynamic enable-crypto-mdebug enable-crypto-mdebug-backtrace enable-egd" COMMENT="Move to the BORINGTEST build when interoperable"
7b195438 68 - os: linux
16161a30 69 dist: trusty
9a96626e 70 compiler: clang
fbc6efbb 71 env: CONFIG_OPTS="--strict-warnings -D__NO_STRING_INLINES"
3119c849 72 - os: linux
fbc6efbb
TM
73 dist: xenial
74 compiler: gcc
75 env: CONFIG_OPTS="--strict-warnings no-deprecated enable-rc5 enable-md2"
b169c0ec
AP
76 - os: linux
77 addons:
78 apt:
79 packages:
80 - binutils-mingw-w64
81 - gcc-mingw-w64
82 compiler: i686-w64-mingw32-gcc
83 env: CONFIG_OPTS="no-stdio" BUILDONLY="yes"
ad0a0a3a 84 - os: linux
31c1db92
AP
85 addons:
86 apt:
87 packages:
16161a30
BE
88 - golang-1.10
89 compiler: gcc
90 env: EXTENDED_TEST="yes" CONFIG_OPTS="--debug --coverage no-asm enable-rc5 enable-md2 enable-ec_nistp_64_gcc_128 enable-ssl3 enable-ssl3-method enable-nextprotoneg enable-weak-ssl-ciphers no-shared enable-buildtest-c++ -DPEDANTIC -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION" COVERALLS="yes" BORINGSSL_TESTS="yes" CXX="g++"
cd838c65
RL
91 - os: linux
92 addons:
93 apt:
94 packages:
16161a30
BE
95 - golang-1.10
96 compiler: gcc
20e6631c
MC
97 # External test pyca-cryptography temporarily disabled due to long term travis failures
98 env: EXTENDED_TEST="yes" CONFIG_OPTS="--debug enable-ssl3 enable-ssl3-method enable-weak-ssl-ciphers enable-external-tests enable-buildtest-c++" BORINGSSL_TESTS="yes" CXX="g++" TESTS="test_external_boringssl test_external_krb5"
29df3061 99 - os: linux
9a96626e 100 compiler: clang
fbc6efbb 101 env: EXTENDED_TEST="yes" CONFIG_OPTS="enable-msan disable-afalgeng -Wno-unused-command-line-argument"
6220acf8 102 - os: linux
9a96626e 103 compiler: clang
fbc6efbb 104 env: EXTENDED_TEST="yes" CONFIG_OPTS="no-asm enable-ubsan enable-rc5 enable-md2 enable-ssl3 enable-ssl3-method enable-nextprotoneg no-shared enable-buildtest-c++ -fno-sanitize=alignment -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION -Wno-unused-command-line-argument" CXX="clang++"
4de3fe53 105 - os: linux
16161a30
BE
106 compiler: gcc
107 env: EXTENDED_TEST="yes" CONFIG_OPTS="--debug no-asm enable-ubsan enable-rc5 enable-md2 enable-buildtest-c++ -DPEDANTIC" OPENSSL_TEST_RAND_ORDER=0
b4aaf194 108 - os: linux
fbc6efbb 109 dist: xenial
31c1db92
AP
110 addons:
111 apt:
112 packages:
113 - binutils-mingw-w64
114 - gcc-mingw-w64
b4aaf194 115 compiler: i686-w64-mingw32-gcc
5d322036 116 env: EXTENDED_TEST="yes" CONFIG_OPTS="no-pic"
56cd71b4 117 - os: linux
fbc6efbb 118 dist: xenial
31c1db92
AP
119 addons:
120 apt:
121 packages:
122 - binutils-mingw-w64
123 - gcc-mingw-w64
b4aaf194 124 compiler: x86_64-w64-mingw32-gcc
5d322036 125 env: EXTENDED_TEST="yes" CONFIG_OPTS="no-pic"
2a6f57bc 126 - os: linux
127 language: python
128 python: 3.7
2a6f57bc 129 install: pip install flake8
130 before_script:
131 # stop the build if there are Python syntax errors or undefined names
132 - flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
133 # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
134 - flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
135 script: true
d819760d
BE
136 - os: linux
137 compiler: gcc
4ef0ddc9 138 env: CONFIGURE_TARGET="linux-generic32" MARKDOWNLINT="yes" CONFIG_OPTS="--strict-warnings no-shared no-dso no-pic no-aria no-async no-autoload-config no-blake2 no-bf no-camellia no-cast no-chacha no-cmac no-cms no-cmp no-comp no-ct no-des no-dgram no-dh no-dsa no-dtls no-ec2m no-engine no-filenames no-gost no-idea no-ktls no-mdc2 no-md4 no-multiblock no-nextprotoneg no-ocsp no-ocb no-poly1305 no-psk no-rc2 no-rc4 no-rmd160 no-seed no-siphash no-siv no-sm2 no-sm3 no-sm4 no-srp no-srtp no-ssl3 no-ssl3-method no-ts no-ui-console no-whirlpool no-asm -DOPENSSL_NO_SECURE_MEMORY -DOPENSSL_SMALL_FOOTPRINT"
3ce38663 139
db9defdf
RS
140
141before_script:
b169c0ec 142 - env
2da3f968 143 - if [ "$TRAVIS_PULL_REQUEST" != "false" -a -n "$EXTENDED_TEST" ]; then
6df44cf6 144 (git log -1 $TRAVIS_COMMIT_RANGE | grep '\[extended tests\]' > /dev/null) || travis_terminate 0;
b169c0ec 145 fi
262ee9a2
RL
146 - if [ -n "$DESTDIR" ]; then
147 sh .travis-create-release.sh $TRAVIS_OS_NAME;
9967a9ed 148 tar -xzf _srcdist.tar.gz;
6caf63ec
RL
149 mkdir -p _build/tree;
150 cd _build/tree;
151 srcdir=../../_srcdist;
152 top=../..;
262ee9a2
RL
153 else
154 srcdir=.;
155 top=.;
156 fi
9967a9ed 157 - if [ "$CC" = i686-w64-mingw32-gcc ]; then
db9defdf 158 export CROSS_COMPILE=${CC%%gcc}; unset CC;
262ee9a2 159 $srcdir/Configure mingw $CONFIG_OPTS -Wno-pedantic-ms-format;
9967a9ed 160 elif [ "$CC" = x86_64-w64-mingw32-gcc ]; then
db9defdf 161 export CROSS_COMPILE=${CC%%gcc}; unset CC;
262ee9a2 162 $srcdir/Configure mingw64 $CONFIG_OPTS -Wno-pedantic-ms-format;
db9defdf 163 else
16161a30 164 if which ccache >/dev/null && test "$BORINGSSL_TESTS" != yes; then
a70ca740 165 CC="ccache $CC";
8cffddc0 166 fi;
d819760d
BE
167 if [ -n "$CONFIGURE_TARGET" ]; then
168 $srcdir/Configure $CONFIGURE_TARGET $CONFIG_OPTS;
169 else
170 $srcdir/config -v $CONFIG_OPTS;
171 fi;
db9defdf 172 fi
2da0130b 173 - ./configdata.pm --dump
262ee9a2 174 - cd $top
66c103bd
AG
175
176script:
7d726440 177 - if [ -z "$BUILDONLY" ] && [ -z "$MAKEVERBOSE" ] ; then
a4ffbbee
RL
178 make="make -s";
179 else
180 make="make";
181 fi
6197bc7c
RL
182 - if [ -n "$GENERATE" ]; then
183 make2="$make PERL=no-perl";
184 else
185 make2="$make";
186 fi
ab29eca6 187 - top=${PWD}
262ee9a2 188 - if [ -n "$DESTDIR" ]; then
6caf63ec 189 cd _build/tree;
262ee9a2 190 fi
97ace6c2 191 - if ! $make update; then
46c428d7 192 echo -e '\052\052 FAILED -- MAKE UPDATE';
5be78a88 193 travis_terminate 1;
caf12bd6 194 fi
46c428d7 195 - if ! git diff --exit-code; then
79c44b4e 196 echo -e '\052\052 FAILED -- UPDATED FILES NOT COMMITTED';
46c428d7 197 travis_terminate 1;
29ee1be5 198 fi
46c428d7
RS
199 - if test -n "$GENERATE" && ! $make build_all_generated; then
200 echo -e '\052\052 FAILED -- MAKE BUILD_ALL_GENERATED';
201 travis_terminate 1;
202 fi
9fcb9702
RS
203 - if test -n "$CHECKDOCS" && ! $make doc-nits; then
204 echo -e '\052\052 FAILED -- MAKE DOC-NITS';
205 travis_terminate 1;
206 fi
4ef0ddc9
RS
207 - if test -n "$MARKDOWNLINT" ; then
208 echo -e "====START MARKDOWNLINT====";
209 gem install mdl || travis_terminate 1;
210 mdl -s util/markdownlint.rb . || travis_terminate 1;
211 echo -e "====END MARKDOWNLINT====";
212 fi
46c428d7
RS
213 - if ! $make2; then
214 echo -e '\052\052 FAILED -- MAKE';
5be78a88 215 travis_terminate 1;
d8ebcf5c 216 fi;
912f8a98
RS
217 - if test -n "$CHECKDOCS" && ! $make cmd-nits; then
218 echo -e '\052\052 FAILED -- MAKE CMD-NITS';
219 travis_terminate 1;
220 fi
b63447c1 221 - if [ -z "$BUILDONLY" ]; then
56cd71b4 222 if [ -n "$CROSS_COMPILE" ]; then
703324a7
EK
223 sudo dpkg --add-architecture i386;
224 sudo apt-get update;
b169c0ec 225 sudo apt-get -yq --no-install-suggests --no-install-recommends --force-yes install wine;
56cd71b4
EK
226 export EXE_SHELL="wine" WINEPREFIX=`pwd`;
227 fi;
0fef7448
RH
228 if [ -e krb5/src ]; then
229 sudo apt-get -yq install bison dejagnu gettext keyutils ldap-utils libldap2-dev libkeyutils-dev python-cjson python-paste python-pyrad slapd tcl-dev tcsh;
230 fi;
cde63b73 231 if ! HARNESS_VERBOSE_FAILURE=yes BORING_RUNNER_DIR=$top/boringssl/ssl/test/runner travis_wait 60 make _tests; then
46c428d7 232 echo -e '\052\052 FAILED -- MAKE TEST';
5be78a88 233 travis_terminate 1;
d8ebcf5c 234 fi;
d7a275ee 235 else
46c428d7
RS
236 if ! $make build_tests >~/build.log 2>&1; then
237 echo -e '\052\052 FAILED -- MAKE BUILD_TESTS';
9967a9ed 238 cat ~/build.log
5be78a88 239 travis_terminate 1;
d8ebcf5c 240 fi;
1a3ae788 241 fi
d227a302 242 - if [ -n "$DESTDIR" ]; then
ab29eca6 243 mkdir "$top/$DESTDIR";
46c428d7
RS
244 if ! $make install DESTDIR="$top/$DESTDIR" >~/install.log 2>&1 ; then
245 echo -e '\052\052 FAILED -- MAKE INSTALL';
9967a9ed 246 cat ~/install.log;
5be78a88 247 travis_terminate 1;
d8ebcf5c 248 fi;
d227a302 249 fi
262ee9a2 250 - cd $top
46c428d7 251 - echo -e '\052\052 DONE'
66c103bd 252
ad0a0a3a
EK
253after_success:
254 - if [ -n "$COVERALLS" ]; then
16161a30 255 coveralls -b . --gcov gcov --gcov-options '\-lpbc';
ad0a0a3a
EK
256 fi;
257
66c103bd 258notifications:
db9defdf 259 email:
5e28b1c1 260 secure: "xeGNgWO7aoaDgRvcZubposqMsj36aU8c6F0oHfw+rUqltCQ14IgYCUwzocmR2O+Pa7B3Cx5VjMfBFHbQaajZsfod8vu7g+aGq/zkjwbhsr/SR4dljJjFJXLGZjIalm9KgP6KInmVDuINfCqP+MHIY5lZkNI7DMcyHDhVc5nSKvCXV7xTDNgmstvh8rB/z51WfHDqGqfBtiuK5FDNxmvYK8OFJ5W94Lu9LDlizcxwK3GAj7arOui7Z5w8bQ6p4seUE3IvJL1Zbj0pZHxvNb6Zeb2Pn8QF1qLlN8YmBktD4aiw0ce4wYRiL87uLgcOxZY7SVXtv2XYFIYWapU/FKjCqa6vK93V/H9eZWEIYNMKnN3wXm2beqVdnKek3OeGJ8v0y7MbSfuLfRtBqbTSNYnpU1Zuo4MQAvHvEPuwCAYkYQajOSRplMH5sULFKptuVqNtOMfjL8jHb8AEoL1acYIk43ydxeYrzzas4fqgCDJ52573/u0RNdF1lkQBLkuM365OB8VRqtpnoxcdEIY/qBc/8TzZ24fxyrs5qdHFcxGSgpN2EP6cJMqpvkemnCNSdhxUqfzm22N7a3O8+4LFSBGOnHto/PwdsvF/01yGYL0LoZTnoO1i6x7AMJPBh+eyDU0ZjGhj/msjmqeb9C8vRqQ+1WjHrIS1iqCD0Czib8tUPD4="