]> git.ipfire.org Git - thirdparty/openssl.git/blame - .travis.yml
Strip much out of ssl.pod
[thirdparty/openssl.git] / .travis.yml
CommitLineData
16161a30 1dist: xenial
703324a7
EK
2sudo: required
3
46cc9f35
AP
4osx_image: xcode9.3
5
66c103bd 6language: c
bd5fbfe2 7cache: ccache
22df22e7
AP
8git:
9 submodules: false
b1bebbcb 10 quiet: true
66c103bd 11
ad0a0a3a 12before_install:
b3943604
AP
13 - if [ -n "$COVERALLS" ]; then
14 pip install --user cpp-coveralls;
15 fi;
22df22e7
AP
16 - if expr "$CONFIG_OPTS" ":" ".*enable-external-tests" > /dev/null; then
17 git submodule update --init --recursive;
18 fi;
ad0a0a3a 19
66c103bd 20os:
db9defdf 21 - linux
a6da6b73 22 - osx
66c103bd
AG
23
24compiler:
db9defdf
RS
25 - clang
26 - gcc
66c103bd
AG
27
28env:
5d322036
RL
29 - CONFIG_OPTS="" DESTDIR="_install"
30 - CONFIG_OPTS="no-asm -Werror --debug no-afalgeng no-shared enable-crypto-mdebug enable-rc5 enable-md2"
26a053d1 31 - CONFIG_OPTS="no-asm no-makedepend enable-buildtest-c++ --strict-warnings -D_DEFAULT_SOURCE" BUILDONLY="yes" CHECKDOCS="yes" GENERATE="yes" CPPFLAGS="-ansi"
db9defdf
RS
32
33matrix:
f386742c 34 include:
0399aba7
FF
35 - os: linux
36 arch: arm64
37 compiler: gcc
38 env: CONFIG_OPTS="--strict-warnings"
13da3ad0
AP
39 - os: linux-ppc64le
40 sudo: false
41 compiler: clang
42 env: CONFIG_OPTS="--strict-warnings -D__NO_STRING_INLINES"
b169c0ec 43 - os: linux
16161a30 44 compiler: gcc
5d322036 45 env: CONFIG_OPTS="--strict-warnings" COMMENT="Move to the BORINGTEST build when interoperable"
7b195438 46 - os: linux
16161a30 47 dist: trusty
9a96626e 48 compiler: clang
c8979960 49 env: CONFIG_OPTS="--strict-warnings -D__NO_STRING_INLINES no-deprecated"
3119c849
BE
50 - os: linux
51 dist: bionic
52 compiler: clang
53 env: CONFIG_OPTS="--strict-warnings -D__NO_STRING_INLINES no-deprecated" BUILDONLY="yes"
b169c0ec
AP
54 - os: linux
55 addons:
56 apt:
57 packages:
58 - binutils-mingw-w64
59 - gcc-mingw-w64
60 compiler: i686-w64-mingw32-gcc
61 env: CONFIG_OPTS="no-stdio" BUILDONLY="yes"
41b77d54
AP
62 # Uncomment if there is reason to believe that PPC-specific problem
63 # can be diagnosed with this possibly >30 mins sanitizer build...
64 #- os: linux-ppc64le
65 # sudo: false
66 # compiler: gcc
67 # env: EXTENDED_TEST="yes" CONFIG_OPTS="no-asm enable-asan enable-ubsan no-shared -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION -D__NO_STRING_INLINES"
ad0a0a3a 68 - os: linux
31c1db92
AP
69 addons:
70 apt:
71 packages:
16161a30
BE
72 - golang-1.10
73 compiler: gcc
74 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
75 - os: linux
76 addons:
77 apt:
78 packages:
16161a30
BE
79 - golang-1.10
80 compiler: gcc
81 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=95
29df3061 82 - os: linux
9a96626e 83 compiler: clang
16161a30 84 env: EXTENDED_TEST="yes" CONFIG_OPTS="enable-msan disable-afalgeng -D__NO_STRING_INLINES -Wno-unused-command-line-argument"
6220acf8 85 - os: linux
9a96626e 86 compiler: clang
16161a30 87 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 -D__NO_STRING_INLINES -Wno-unused-command-line-argument" CXX="clang++"
6f60a5a1 88 - os: linux
9a96626e
AP
89 compiler: clang
90 env: EXTENDED_TEST="yes" CONFIG_OPTS="no-asm enable-asan enable-rc5 enable-md2 no-shared -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION -D__NO_STRING_INLINES -Wno-unused-command-line-argument"
4de3fe53 91 - os: linux
16161a30
BE
92 compiler: gcc
93 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 94 - os: linux
31c1db92
AP
95 addons:
96 apt:
97 packages:
98 - binutils-mingw-w64
99 - gcc-mingw-w64
b4aaf194 100 compiler: i686-w64-mingw32-gcc
5d322036 101 env: EXTENDED_TEST="yes" CONFIG_OPTS="no-pic"
56cd71b4 102 - os: linux
31c1db92
AP
103 addons:
104 apt:
105 packages:
106 - binutils-mingw-w64
107 - gcc-mingw-w64
b4aaf194 108 compiler: x86_64-w64-mingw32-gcc
5d322036 109 env: EXTENDED_TEST="yes" CONFIG_OPTS="no-pic"
2a6f57bc 110 - os: linux
111 language: python
112 python: 3.7
2a6f57bc 113 install: pip install flake8
114 before_script:
115 # stop the build if there are Python syntax errors or undefined names
116 - flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
117 # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
118 - flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
119 script: true
db9defdf 120 exclude:
210efa8b
EK
121 - os: linux
122 compiler: clang
dbf9a33c
AP
123 - os: osx
124 compiler: gcc
db9defdf
RS
125
126before_script:
b169c0ec 127 - env
2da3f968 128 - if [ "$TRAVIS_PULL_REQUEST" != "false" -a -n "$EXTENDED_TEST" ]; then
b169c0ec
AP
129 (git log -1 $TRAVIS_COMMIT_RANGE | grep '\[extended tests\]' > /dev/null) || exit 0;
130 fi
262ee9a2
RL
131 - if [ -n "$DESTDIR" ]; then
132 sh .travis-create-release.sh $TRAVIS_OS_NAME;
9967a9ed 133 tar -xzf _srcdist.tar.gz;
262ee9a2
RL
134 mkdir _build;
135 cd _build;
136 srcdir=../_srcdist;
137 top=..;
138 else
139 srcdir=.;
140 top=.;
141 fi
9967a9ed 142 - if [ "$CC" = i686-w64-mingw32-gcc ]; then
db9defdf 143 export CROSS_COMPILE=${CC%%gcc}; unset CC;
262ee9a2 144 $srcdir/Configure mingw $CONFIG_OPTS -Wno-pedantic-ms-format;
9967a9ed 145 elif [ "$CC" = x86_64-w64-mingw32-gcc ]; then
db9defdf 146 export CROSS_COMPILE=${CC%%gcc}; unset CC;
262ee9a2 147 $srcdir/Configure mingw64 $CONFIG_OPTS -Wno-pedantic-ms-format;
db9defdf 148 else
16161a30 149 if which ccache >/dev/null && test "$BORINGSSL_TESTS" != yes; then
a70ca740 150 CC="ccache $CC";
8cffddc0 151 fi;
ffb261ff 152 $srcdir/config -v $CONFIG_OPTS;
db9defdf 153 fi
2da0130b 154 - ./configdata.pm --dump
262ee9a2 155 - cd $top
66c103bd
AG
156
157script:
a4ffbbee
RL
158 - if [ -z "$BUILDONLY" ]; then
159 make="make -s";
160 else
161 make="make";
162 fi
6197bc7c
RL
163 - if [ -n "$GENERATE" ]; then
164 make2="$make PERL=no-perl";
165 else
166 make2="$make";
167 fi
ab29eca6 168 - top=${PWD}
262ee9a2
RL
169 - if [ -n "$DESTDIR" ]; then
170 cd _build;
262ee9a2 171 fi
46c428d7
RS
172 - if ! $make update; then
173 echo -e '\052\052 FAILED -- MAKE UPDATE';
5be78a88 174 travis_terminate 1;
caf12bd6 175 fi
46c428d7
RS
176 - if ! git diff --exit-code; then
177 echo -e '\052\052 FAILED -- UPDATED FILES NOT COMMITED';
178 travis_terminate 1;
29ee1be5 179 fi
46c428d7
RS
180 - if test -n "$GENERATE" && ! $make build_all_generated; then
181 echo -e '\052\052 FAILED -- MAKE BUILD_ALL_GENERATED';
182 travis_terminate 1;
183 fi
9fcb9702
RS
184 - if test -n "$CHECKDOCS" && ! $make doc-nits; then
185 echo -e '\052\052 FAILED -- MAKE DOC-NITS';
186 travis_terminate 1;
187 fi
46c428d7
RS
188 - if ! $make2; then
189 echo -e '\052\052 FAILED -- MAKE';
5be78a88 190 travis_terminate 1;
d8ebcf5c 191 fi;
b63447c1 192 - if [ -z "$BUILDONLY" ]; then
56cd71b4 193 if [ -n "$CROSS_COMPILE" ]; then
703324a7
EK
194 sudo dpkg --add-architecture i386;
195 sudo apt-get update;
b169c0ec 196 sudo apt-get -yq --no-install-suggests --no-install-recommends --force-yes install wine;
56cd71b4
EK
197 export EXE_SHELL="wine" WINEPREFIX=`pwd`;
198 fi;
0fef7448
RH
199 if [ -e krb5/src ]; then
200 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;
201 fi;
799614fa 202 if ! HARNESS_VERBOSE_FAILURE=yes BORING_RUNNER_DIR=$top/boringssl/ssl/test/runner make test; then
46c428d7 203 echo -e '\052\052 FAILED -- MAKE TEST';
5be78a88 204 travis_terminate 1;
d8ebcf5c 205 fi;
d7a275ee 206 else
46c428d7
RS
207 if ! $make build_tests >~/build.log 2>&1; then
208 echo -e '\052\052 FAILED -- MAKE BUILD_TESTS';
9967a9ed 209 cat ~/build.log
5be78a88 210 travis_terminate 1;
d8ebcf5c 211 fi;
1a3ae788 212 fi
d227a302 213 - if [ -n "$DESTDIR" ]; then
ab29eca6 214 mkdir "$top/$DESTDIR";
46c428d7
RS
215 if ! $make install DESTDIR="$top/$DESTDIR" >~/install.log 2>&1 ; then
216 echo -e '\052\052 FAILED -- MAKE INSTALL';
9967a9ed 217 cat ~/install.log;
5be78a88 218 travis_terminate 1;
d8ebcf5c 219 fi;
d227a302 220 fi
262ee9a2 221 - cd $top
46c428d7 222 - echo -e '\052\052 DONE'
66c103bd 223
ad0a0a3a
EK
224after_success:
225 - if [ -n "$COVERALLS" ]; then
16161a30 226 coveralls -b . --gcov gcov --gcov-options '\-lpbc';
ad0a0a3a
EK
227 fi;
228
66c103bd 229notifications:
db9defdf 230 email:
5e28b1c1 231 secure: "xeGNgWO7aoaDgRvcZubposqMsj36aU8c6F0oHfw+rUqltCQ14IgYCUwzocmR2O+Pa7B3Cx5VjMfBFHbQaajZsfod8vu7g+aGq/zkjwbhsr/SR4dljJjFJXLGZjIalm9KgP6KInmVDuINfCqP+MHIY5lZkNI7DMcyHDhVc5nSKvCXV7xTDNgmstvh8rB/z51WfHDqGqfBtiuK5FDNxmvYK8OFJ5W94Lu9LDlizcxwK3GAj7arOui7Z5w8bQ6p4seUE3IvJL1Zbj0pZHxvNb6Zeb2Pn8QF1qLlN8YmBktD4aiw0ce4wYRiL87uLgcOxZY7SVXtv2XYFIYWapU/FKjCqa6vK93V/H9eZWEIYNMKnN3wXm2beqVdnKek3OeGJ8v0y7MbSfuLfRtBqbTSNYnpU1Zuo4MQAvHvEPuwCAYkYQajOSRplMH5sULFKptuVqNtOMfjL8jHb8AEoL1acYIk43ydxeYrzzas4fqgCDJ52573/u0RNdF1lkQBLkuM365OB8VRqtpnoxcdEIY/qBc/8TzZ24fxyrs5qdHFcxGSgpN2EP6cJMqpvkemnCNSdhxUqfzm22N7a3O8+4LFSBGOnHto/PwdsvF/01yGYL0LoZTnoO1i6x7AMJPBh+eyDU0ZjGhj/msjmqeb9C8vRqQ+1WjHrIS1iqCD0Czib8tUPD4="