Regenerate mkerr files
[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
20 os:
21     - linux
22     - osx
23
24 compiler:
25     - clang
26     - gcc
27
28 env:
29     - CONFIG_OPTS="" DESTDIR="_install"
30     - CONFIG_OPTS="no-asm -Werror --debug no-afalgeng no-shared enable-crypto-mdebug enable-rc5 enable-md2"
31     - CONFIG_OPTS="no-asm no-makedepend enable-buildtest-c++ --strict-warnings -D_DEFAULT_SOURCE" BUILDONLY="yes" CHECKDOCS="yes" GENERATE="yes" CPPFLAGS="-ansi"
32
33 matrix:
34     include:
35         - os: linux-ppc64le
36           sudo: false
37           compiler: clang
38           env: CONFIG_OPTS="--strict-warnings -D__NO_STRING_INLINES"
39         - os: linux
40           compiler: gcc
41           env: CONFIG_OPTS="--strict-warnings" COMMENT="Move to the BORINGTEST build when interoperable"
42         - os: linux
43           dist: trusty
44           compiler: clang
45           env: CONFIG_OPTS="--strict-warnings -D__NO_STRING_INLINES no-deprecated" BUILDONLY="yes"
46         - os: linux
47           addons:
48               apt:
49                   packages:
50                       - binutils-mingw-w64
51                       - gcc-mingw-w64
52           compiler: i686-w64-mingw32-gcc
53           env: CONFIG_OPTS="no-stdio" BUILDONLY="yes"
54         # Uncomment if there is reason to believe that PPC-specific problem
55         # can be diagnosed with this possibly >30 mins sanitizer build...
56         #- os: linux-ppc64le
57         #  sudo: false
58         #  compiler: gcc
59         #  env: EXTENDED_TEST="yes" CONFIG_OPTS="no-asm enable-asan enable-ubsan no-shared -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION -D__NO_STRING_INLINES"
60         - os: linux
61           addons:
62               apt:
63                   packages:
64                       - golang-1.10
65           compiler: gcc
66           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++"
67         - os: linux
68           addons:
69               apt:
70                   packages:
71                       - golang-1.10
72           compiler: gcc
73           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
74         - os: linux
75           compiler: clang
76           env: EXTENDED_TEST="yes" CONFIG_OPTS="enable-msan disable-afalgeng -D__NO_STRING_INLINES -Wno-unused-command-line-argument"
77         - os: linux
78           compiler: clang
79           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++"
80         - os: linux
81           compiler: clang
82           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"
83         - os: linux
84           compiler: gcc
85           env: EXTENDED_TEST="yes" CONFIG_OPTS="--debug no-asm enable-ubsan enable-rc5 enable-md2 enable-buildtest-c++ -DPEDANTIC" OPENSSL_TEST_RAND_ORDER=0
86         - os: linux
87           addons:
88               apt:
89                   packages:
90                       - binutils-mingw-w64
91                       - gcc-mingw-w64
92           compiler: i686-w64-mingw32-gcc
93           env: EXTENDED_TEST="yes" CONFIG_OPTS="no-pic"
94         - os: linux
95           addons:
96               apt:
97                   packages:
98                       - binutils-mingw-w64
99                       - gcc-mingw-w64
100           compiler: x86_64-w64-mingw32-gcc
101           env: EXTENDED_TEST="yes" CONFIG_OPTS="no-pic"
102         - os: linux
103           language: python
104           python: 3.7
105           install: pip install flake8
106           before_script:
107             # stop the build if there are Python syntax errors or undefined names
108             - flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
109             # exit-zero treats all errors as warnings.  The GitHub editor is 127 chars wide
110             - flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
111           script: true
112     exclude:
113         - os: linux
114           compiler: clang
115         - os: osx
116           compiler: gcc
117
118 before_script:
119     - env
120     - if [ "$TRAVIS_PULL_REQUEST" != "false" -a -n "$EXTENDED_TEST" ]; then
121           (git log -1 $TRAVIS_COMMIT_RANGE | grep '\[extended tests\]' > /dev/null) || exit 0;
122       fi
123     - if [ -n "$DESTDIR" ]; then
124           sh .travis-create-release.sh $TRAVIS_OS_NAME;
125           tar -xzf _srcdist.tar.gz;
126           mkdir _build;
127           cd _build;
128           srcdir=../_srcdist;
129           top=..;
130       else
131           srcdir=.;
132           top=.;
133       fi
134     - if [ "$CC" = i686-w64-mingw32-gcc ]; then
135           export CROSS_COMPILE=${CC%%gcc}; unset CC;
136           $srcdir/Configure mingw $CONFIG_OPTS -Wno-pedantic-ms-format;
137       elif [ "$CC" = x86_64-w64-mingw32-gcc ]; then
138           export CROSS_COMPILE=${CC%%gcc}; unset CC;
139           $srcdir/Configure mingw64 $CONFIG_OPTS -Wno-pedantic-ms-format;
140       else
141           if which ccache >/dev/null && test "$BORINGSSL_TESTS" != yes; then
142               CC="ccache $CC";
143           fi;
144           $srcdir/config -v $CONFIG_OPTS;
145       fi
146     - ./configdata.pm --dump
147     - cd $top
148
149 script:
150     - if [ -z "$BUILDONLY" ]; then
151           make="make -s";
152       else
153           make="make";
154       fi
155     - if [ -n "$GENERATE" ]; then
156           make2="$make PERL=no-perl";
157       else
158           make2="$make";
159       fi
160     - top=${PWD}
161     - if [ -n "$DESTDIR" ]; then
162           cd _build;
163       fi
164     - if $make update; then
165           echo -e '+\057 MAKE UPDATE OK';
166       else
167           echo -e '+\057 MAKE UPDATE FAILED'; false;
168       fi
169     - git diff --exit-code
170     - if [ -n "$CHECKDOCS" ]; then
171           if $make doc-nits; then
172               echo -e '+\057\057 MAKE DOC-NITS OK';
173           else
174               echo -e '+\057\057 MAKE DOC-NITS FAILED'; false;
175           fi;
176       fi
177     - if [ -n "$GENERATE" ]; then
178           if $make build_all_generated; then
179               echo -e '+\057\057\057 MAKE BUILD_ALL_GENERATED OK';
180           else
181               echo -e '+\057\057\057 MAKE BUILD_ALL_GENERATED FAILED'; false;
182           fi;
183       fi
184     - if $make2; then
185           echo -e '+\057\057\057\057 MAKE OK';
186       else
187           echo -e '+\057\057\057\057 MAKE FAILED'; false;
188       fi;
189     - if [ -z "$BUILDONLY" ]; then
190           if [ -n "$CROSS_COMPILE" ]; then
191               sudo dpkg --add-architecture i386;
192               sudo apt-get update;
193               sudo apt-get -yq --no-install-suggests --no-install-recommends --force-yes install wine;
194               export EXE_SHELL="wine" WINEPREFIX=`pwd`;
195           fi;
196           if [ -e krb5/src ]; then
197               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;
198           fi;
199           if HARNESS_VERBOSE=yes BORING_RUNNER_DIR=$top/boringssl/ssl/test/runner make test; then
200               echo -e '+\057\057\057\057\057 MAKE TEST OK';
201           else
202               echo -e '+\057\057\057\057\057 MAKE TEST FAILED'; false;
203           fi;
204       else
205           if $make build_tests >~/build.log 2>&1; then
206               echo -e '+\057\057\057\057\057\057 MAKE BUILD_TESTS OK';
207           else
208               echo -e '+\057\057\057\057\057\057 MAKE BUILD_TESTS FAILED';
209               cat ~/build.log
210               false;
211           fi;
212       fi
213     - if [ -n "$DESTDIR" ]; then
214           mkdir "$top/$DESTDIR";
215           if $make install DESTDIR="$top/$DESTDIR" >~/install.log 2>&1 ; then
216               echo -e '+\057\057\057\057\057\057\057 MAKE INSTALL OK';
217           else
218               echo -e '+\057\057\057\057\057\057\057 MAKE INSTALL FAILED';
219               cat ~/install.log;
220               false;
221           fi;
222       fi
223     - cd $top
224
225 after_success:
226     - if [ -n "$COVERALLS" ]; then
227           coveralls -b . --gcov gcov --gcov-options '\-lpbc';
228       fi;
229
230 notifications:
231     email:
232         secure: "xeGNgWO7aoaDgRvcZubposqMsj36aU8c6F0oHfw+rUqltCQ14IgYCUwzocmR2O+Pa7B3Cx5VjMfBFHbQaajZsfod8vu7g+aGq/zkjwbhsr/SR4dljJjFJXLGZjIalm9KgP6KInmVDuINfCqP+MHIY5lZkNI7DMcyHDhVc5nSKvCXV7xTDNgmstvh8rB/z51WfHDqGqfBtiuK5FDNxmvYK8OFJ5W94Lu9LDlizcxwK3GAj7arOui7Z5w8bQ6p4seUE3IvJL1Zbj0pZHxvNb6Zeb2Pn8QF1qLlN8YmBktD4aiw0ce4wYRiL87uLgcOxZY7SVXtv2XYFIYWapU/FKjCqa6vK93V/H9eZWEIYNMKnN3wXm2beqVdnKek3OeGJ8v0y7MbSfuLfRtBqbTSNYnpU1Zuo4MQAvHvEPuwCAYkYQajOSRplMH5sULFKptuVqNtOMfjL8jHb8AEoL1acYIk43ydxeYrzzas4fqgCDJ52573/u0RNdF1lkQBLkuM365OB8VRqtpnoxcdEIY/qBc/8TzZ24fxyrs5qdHFcxGSgpN2EP6cJMqpvkemnCNSdhxUqfzm22N7a3O8+4LFSBGOnHto/PwdsvF/01yGYL0LoZTnoO1i6x7AMJPBh+eyDU0ZjGhj/msjmqeb9C8vRqQ+1WjHrIS1iqCD0Czib8tUPD4="