]> git.ipfire.org Git - thirdparty/openssl.git/blob - .travis.yml
EVP_MD_CTX_ctrl(): Remove unnecessary control
[thirdparty/openssl.git] / .travis.yml
1 dist: xenial
2 sudo: required
3
4 osx_image: xcode9.3
5
6 language: c
7 cache: ccache
8 git:
9 submodules: false
10 quiet: true
11
12 before_install:
13 - if [ -n "$COVERALLS" ]; then
14 pip install --user cpp-coveralls;
15 fi;
16 - if expr "$CONFIG_OPTS" ":" ".*enable-external-tests" > /dev/null; then
17 git submodule update --init --recursive;
18 fi;
19 - eval "${MATRIX_EVAL}"
20
21 arch:
22 - amd64
23 - arm64
24
25 os:
26 - linux
27 - osx
28
29 compiler:
30 - clang
31 - gcc
32
33 env:
34 - CONFIG_OPTS="" DESTDIR="_install"
35 # Note: This CONFIG_OPTS entry must match the value in the exclude: table below that contains env: CONFIG_OPTS , otherwise it will not find a match.
36 - CONFIG_OPTS="no-asm -Werror --debug no-afalgeng no-shared enable-rc5 enable-md2 -fsanitize=address" LSAN_OPTIONS="report_objects=1"
37 - CONFIG_OPTS="no-asm no-makedepend enable-buildtest-c++ --strict-warnings -D_DEFAULT_SOURCE" BUILDONLY="yes" CHECKDOCS="yes" GENERATE="yes" CPPFLAGS="-ansi"
38
39 matrix:
40 include:
41 - os: linux
42 arch: arm64
43 dist: bionic
44 compiler: clang
45 env: CONFIG_OPTS="--strict-warnings -D__NO_STRING_INLINES no-deprecated" BUILDONLY="yes"
46 - os: linux
47 arch: arm64
48 compiler: clang
49 addons:
50 apt:
51 packages:
52 - clang-6.0
53 env: EXTENDED_TEST="yes" CONFIG_OPTS="enable-msan disable-afalgeng -D__NO_STRING_INLINES -Wno-unused-command-line-argument" MATRIX_EVAL="CC=clang-6.0 && CXX=clang++-6.0"
54 - os: linux
55 arch: arm64
56 compiler: clang
57 addons:
58 apt:
59 packages:
60 - clang-6.0
61 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" MATRIX_EVAL="CC=clang-6.0 && CXX=clang++-6.0"
62 - os: linux
63 arch: s390x
64 compiler: gcc
65 env: CONFIG_OPTS="--strict-warnings"
66 - os: linux-ppc64le
67 sudo: false
68 compiler: clang
69 env: CONFIG_OPTS="--strict-warnings -D__NO_STRING_INLINES"
70 - os: linux
71 compiler: gcc
72 env: CONFIG_OPTS="--strict-warnings" COMMENT="Move to the BORINGTEST build when interoperable"
73 - os: linux
74 dist: trusty
75 compiler: clang
76 env: CONFIG_OPTS="--strict-warnings -D__NO_STRING_INLINES no-deprecated"
77 - os: linux
78 dist: bionic
79 compiler: clang
80 env: CONFIG_OPTS="--strict-warnings -D__NO_STRING_INLINES no-deprecated" BUILDONLY="yes"
81 - os: linux
82 addons:
83 apt:
84 packages:
85 - binutils-mingw-w64
86 - gcc-mingw-w64
87 compiler: i686-w64-mingw32-gcc
88 env: CONFIG_OPTS="no-stdio" BUILDONLY="yes"
89 # Uncomment if there is reason to believe that PPC-specific problem
90 # can be diagnosed with this possibly >30 mins sanitizer build...
91 #- os: linux-ppc64le
92 # sudo: false
93 # compiler: gcc
94 # env: EXTENDED_TEST="yes" CONFIG_OPTS="no-asm enable-asan enable-ubsan no-shared -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION -D__NO_STRING_INLINES"
95 - os: linux
96 addons:
97 apt:
98 packages:
99 - golang-1.10
100 compiler: gcc
101 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++"
102 - os: linux
103 addons:
104 apt:
105 packages:
106 - golang-1.10
107 compiler: gcc
108 # External test pyca-cryptography temporarily disabled due to long term travis failures
109 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"
110 - os: linux
111 compiler: clang
112 env: EXTENDED_TEST="yes" CONFIG_OPTS="enable-msan disable-afalgeng -D__NO_STRING_INLINES -Wno-unused-command-line-argument"
113 - os: linux
114 compiler: clang
115 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++"
116 #Temporarily removed because memleak test fails for unknown reasons in this build. Other builds with memleak testing ("-fsanitize=address") are passing.
117 # - os: linux
118 # compiler: clang
119 # 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"
120 - os: linux
121 compiler: gcc
122 env: EXTENDED_TEST="yes" CONFIG_OPTS="--debug no-asm enable-ubsan enable-rc5 enable-md2 enable-buildtest-c++ -DPEDANTIC" OPENSSL_TEST_RAND_ORDER=0
123 - os: linux
124 addons:
125 apt:
126 packages:
127 - binutils-mingw-w64
128 - gcc-mingw-w64
129 compiler: i686-w64-mingw32-gcc
130 env: EXTENDED_TEST="yes" CONFIG_OPTS="no-pic"
131 - os: linux
132 addons:
133 apt:
134 packages:
135 - binutils-mingw-w64
136 - gcc-mingw-w64
137 compiler: x86_64-w64-mingw32-gcc
138 env: EXTENDED_TEST="yes" CONFIG_OPTS="no-pic"
139 - os: linux
140 language: python
141 python: 3.7
142 install: pip install flake8
143 before_script:
144 # stop the build if there are Python syntax errors or undefined names
145 - flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
146 # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
147 - flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
148 script: true
149 exclude:
150 - os: linux
151 compiler: clang
152 - os: osx
153 compiler: gcc
154 - arch: arm64
155 os: osx
156 # arm64 times out when using -fsanitize=address
157 # The amd64 build should be sufficient to test this.
158 # Note: the env line must exactly match the env line from the build
159 # matrix above which contains the `-fsanitize=address` option.
160 # TODO: come up with a better way of doing this that is less error prone.
161 - arch: arm64
162 env: CONFIG_OPTS="no-asm -Werror --debug no-afalgeng no-shared enable-rc5 enable-md2 -fsanitize=address" LSAN_OPTIONS="report_objects=1"
163
164
165 before_script:
166 - env
167 - if [ "$TRAVIS_PULL_REQUEST" != "false" -a -n "$EXTENDED_TEST" ]; then
168 (git log -1 $TRAVIS_COMMIT_RANGE | grep '\[extended tests\]' > /dev/null) || travis_terminate 0;
169 fi
170 - if [ -n "$DESTDIR" ]; then
171 sh .travis-create-release.sh $TRAVIS_OS_NAME;
172 tar -xzf _srcdist.tar.gz;
173 mkdir _build;
174 cd _build;
175 srcdir=../_srcdist;
176 top=..;
177 else
178 srcdir=.;
179 top=.;
180 fi
181 - if [ "$CC" = i686-w64-mingw32-gcc ]; then
182 export CROSS_COMPILE=${CC%%gcc}; unset CC;
183 $srcdir/Configure mingw $CONFIG_OPTS -Wno-pedantic-ms-format;
184 elif [ "$CC" = x86_64-w64-mingw32-gcc ]; then
185 export CROSS_COMPILE=${CC%%gcc}; unset CC;
186 $srcdir/Configure mingw64 $CONFIG_OPTS -Wno-pedantic-ms-format;
187 else
188 if which ccache >/dev/null && test "$BORINGSSL_TESTS" != yes; then
189 CC="ccache $CC";
190 fi;
191 $srcdir/config -v $CONFIG_OPTS;
192 fi
193 - ./configdata.pm --dump
194 - cd $top
195
196 script:
197 - if [ -z "$BUILDONLY" ]; then
198 make="make -s";
199 else
200 make="make";
201 fi
202 - if [ -n "$GENERATE" ]; then
203 make2="$make PERL=no-perl";
204 else
205 make2="$make";
206 fi
207 - top=${PWD}
208 - if [ -n "$DESTDIR" ]; then
209 cd _build;
210 fi
211 - if ! $make update; then
212 echo -e '\052\052 FAILED -- MAKE UPDATE';
213 travis_terminate 1;
214 fi
215 - if ! git diff --exit-code; then
216 echo -e '\052\052 FAILED -- UPDATED FILES NOT COMMITTED';
217 travis_terminate 1;
218 fi
219 - if test -n "$GENERATE" && ! $make build_all_generated; then
220 echo -e '\052\052 FAILED -- MAKE BUILD_ALL_GENERATED';
221 travis_terminate 1;
222 fi
223 - if test -n "$CHECKDOCS" && ! $make doc-nits; then
224 echo -e '\052\052 FAILED -- MAKE DOC-NITS';
225 travis_terminate 1;
226 fi
227 - if ! $make2; then
228 echo -e '\052\052 FAILED -- MAKE';
229 travis_terminate 1;
230 fi;
231 - if [ -z "$BUILDONLY" ]; then
232 if [ -n "$CROSS_COMPILE" ]; then
233 sudo dpkg --add-architecture i386;
234 sudo apt-get update;
235 sudo apt-get -yq --no-install-suggests --no-install-recommends --force-yes install wine;
236 export EXE_SHELL="wine" WINEPREFIX=`pwd`;
237 fi;
238 if [ -e krb5/src ]; then
239 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;
240 fi;
241 if ! HARNESS_VERBOSE_FAILURE=yes BORING_RUNNER_DIR=$top/boringssl/ssl/test/runner make test; then
242 echo -e '\052\052 FAILED -- MAKE TEST';
243 travis_terminate 1;
244 fi;
245 else
246 if ! $make build_tests >~/build.log 2>&1; then
247 echo -e '\052\052 FAILED -- MAKE BUILD_TESTS';
248 cat ~/build.log
249 travis_terminate 1;
250 fi;
251 fi
252 - if [ -n "$DESTDIR" ]; then
253 mkdir "$top/$DESTDIR";
254 if ! $make install DESTDIR="$top/$DESTDIR" >~/install.log 2>&1 ; then
255 echo -e '\052\052 FAILED -- MAKE INSTALL';
256 cat ~/install.log;
257 travis_terminate 1;
258 fi;
259 fi
260 - cd $top
261 - echo -e '\052\052 DONE'
262
263 after_success:
264 - if [ -n "$COVERALLS" ]; then
265 coveralls -b . --gcov gcov --gcov-options '\-lpbc';
266 fi;
267
268 notifications:
269 email:
270 secure: "xeGNgWO7aoaDgRvcZubposqMsj36aU8c6F0oHfw+rUqltCQ14IgYCUwzocmR2O+Pa7B3Cx5VjMfBFHbQaajZsfod8vu7g+aGq/zkjwbhsr/SR4dljJjFJXLGZjIalm9KgP6KInmVDuINfCqP+MHIY5lZkNI7DMcyHDhVc5nSKvCXV7xTDNgmstvh8rB/z51WfHDqGqfBtiuK5FDNxmvYK8OFJ5W94Lu9LDlizcxwK3GAj7arOui7Z5w8bQ6p4seUE3IvJL1Zbj0pZHxvNb6Zeb2Pn8QF1qLlN8YmBktD4aiw0ce4wYRiL87uLgcOxZY7SVXtv2XYFIYWapU/FKjCqa6vK93V/H9eZWEIYNMKnN3wXm2beqVdnKek3OeGJ8v0y7MbSfuLfRtBqbTSNYnpU1Zuo4MQAvHvEPuwCAYkYQajOSRplMH5sULFKptuVqNtOMfjL8jHb8AEoL1acYIk43ydxeYrzzas4fqgCDJ52573/u0RNdF1lkQBLkuM365OB8VRqtpnoxcdEIY/qBc/8TzZ24fxyrs5qdHFcxGSgpN2EP6cJMqpvkemnCNSdhxUqfzm22N7a3O8+4LFSBGOnHto/PwdsvF/01yGYL0LoZTnoO1i6x7AMJPBh+eyDU0ZjGhj/msjmqeb9C8vRqQ+1WjHrIS1iqCD0Czib8tUPD4="