Previously this x509 command line was working, restore that
[openssl.git] / .travis.yml
1 dist: trusty
2 sudo: required
3
4 language: c
5 cache: ccache
6 git:
7     submodules: false
8
9 before_install:
10     - if [ -n "$COVERALLS" ]; then
11           pip install --user cpp-coveralls;
12       fi;
13     - if expr "$CONFIG_OPTS" ":" ".*enable-external-tests" > /dev/null; then
14           git submodule update --init --recursive;
15       fi;
16
17 addons:
18     apt:
19         packages:
20             - ccache
21             - golang-1.6
22
23 os:
24     - linux
25     - osx
26
27 compiler:
28     - clang
29     - gcc
30
31 env:
32     - CONFIG_OPTS="" DESTDIR="_install" TESTS="-test_fuzz"
33     - CONFIG_OPTS="no-asm -Werror --debug no-afalgeng no-shared enable-crypto-mdebug enable-rc5 enable-md2" TESTS="-test_fuzz"
34     - CONFIG_OPTS="no-asm --strict-warnings" BUILDONLY="yes" CHECKDOCS="yes"
35
36 matrix:
37     include:
38         - os: linux
39           addons:
40               apt:
41                   packages:
42                       - gcc-5
43                       - g++-5
44                   sources:
45                       - ubuntu-toolchain-r-test
46           compiler: gcc-5
47           env: CONFIG_OPTS="--strict-warnings" TESTS="-test_fuzz" COMMENT="Move to the BORINGTEST build when interoperable"
48         - os: linux
49           compiler: clang-3.9
50           env: CONFIG_OPTS="--strict-warnings no-deprecated" BUILDONLY="yes"
51         - os: linux
52           addons:
53               apt:
54                   packages:
55                       - binutils-mingw-w64
56                       - gcc-mingw-w64
57           compiler: i686-w64-mingw32-gcc
58           env: CONFIG_OPTS="no-stdio" BUILDONLY="yes"
59         - os: linux
60           addons:
61               apt:
62                   packages:
63                       - gcc-5
64                       - g++-5
65                   sources:
66                       - ubuntu-toolchain-r-test
67           compiler: gcc-5
68           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 -DPEDANTIC -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION" COVERALLS="yes" BORINGSSL_TESTS="yes" CXX="g++-5"
69         - os: linux
70           addons:
71               apt:
72                   packages:
73                       - gcc-5
74                       - g++-5
75                   sources:
76                       - ubuntu-toolchain-r-test
77           compiler: gcc-5
78           env:  EXTENDED_TEST="yes" CONFIG_OPTS="--debug enable-ssl3 enable-ssl3-method enable-weak-ssl-ciphers enable-external-tests" BORINGSSL_TESTS="yes" CXX="g++-5" TESTS=95
79         - os: linux
80           compiler: clang-3.9
81           env: EXTENDED_TEST="yes" CONFIG_OPTS="enable-msan"
82         - os: linux
83           compiler: clang-3.9
84           env:  EXTENDED_TEST="yes" CONFIG_OPTS="no-asm enable-ubsan enable-rc5 enable-md2 enable-ssl3 enable-ssl3-method enable-nextprotoneg -fno-sanitize=alignment no-shared -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION"
85         - os: linux
86           compiler: clang-3.9
87           env: EXTENDED_TEST="yes" CONFIG_OPTS="no-asm enable-asan enable-rc5 enable-md2 no-shared -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION"
88         - os: linux
89           addons:
90               apt:
91                   packages:
92                       - gcc-5
93                       - g++-5
94                   sources:
95                       - ubuntu-toolchain-r-test
96           compiler: gcc-5
97           env: EXTENDED_TEST="yes" CONFIG_OPTS="--debug no-asm enable-ubsan enable-rc5 enable-md2 -DPEDANTIC" OPENSSL_TEST_RAND_ORDER=0
98         - os: linux
99           addons:
100               apt:
101                   packages:
102                       - binutils-mingw-w64
103                       - gcc-mingw-w64
104           compiler: i686-w64-mingw32-gcc
105           env: EXTENDED_TEST="yes" CONFIG_OPTS="no-pic" TESTS="-test_fuzz"
106         - os: linux
107           addons:
108               apt:
109                   packages:
110                       - binutils-mingw-w64
111                       - gcc-mingw-w64
112           compiler: x86_64-w64-mingw32-gcc
113           env: EXTENDED_TEST="yes" CONFIG_OPTS="no-pic" TESTS="-test_fuzz"
114     exclude:
115         - os: linux
116           compiler: clang
117         - os: osx
118           compiler: gcc
119
120 before_script:
121     - env
122     - if [ "$TRAVIS_PULL_REQUEST" != "false" -a -n "$EXTENDED_TEST" ]; then
123           (git log -1 $TRAVIS_COMMIT_RANGE | grep '\[extended tests\]' > /dev/null) || exit 0;
124       fi
125     - if [ -n "$DESTDIR" ]; then
126           sh .travis-create-release.sh $TRAVIS_OS_NAME;
127           tar -xzf _srcdist.tar.gz;
128           mkdir _build;
129           cd _build;
130           srcdir=../_srcdist;
131           top=..;
132       else
133           srcdir=.;
134           top=.;
135       fi
136     - if [ "$CC" = i686-w64-mingw32-gcc ]; then
137           export CROSS_COMPILE=${CC%%gcc}; unset CC;
138           $srcdir/Configure mingw $CONFIG_OPTS -Wno-pedantic-ms-format;
139       elif [ "$CC" = x86_64-w64-mingw32-gcc ]; then
140           export CROSS_COMPILE=${CC%%gcc}; unset CC;
141           $srcdir/Configure mingw64 $CONFIG_OPTS -Wno-pedantic-ms-format;
142       else
143           if [ "$CC" = clang-3.9 ]; then
144               sudo cp .travis-apt-pin.preferences /etc/apt/preferences.d/no-ubuntu-clang;
145               curl -sSL "http://apt.llvm.org/llvm-snapshot.gpg.key" | sudo -E apt-key add -;
146               echo "deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-3.9 main" | sudo tee -a /etc/apt/sources.list > /dev/null;
147               sudo -E apt-add-repository -y "ppa:ubuntu-toolchain-r/test";
148               sudo -E apt-get -yq update;
149               sudo -E apt-get -yq --no-install-suggests --no-install-recommends --force-yes install clang-3.9;
150           elif which ccache >/dev/null; then
151               CC="ccache $CC";
152           fi;
153           $srcdir/config -v $CONFIG_OPTS;
154       fi
155     - ./configdata.pm --dump
156     - cd $top
157
158 script:
159     - if [ -z "$BUILDONLY" ]; then
160           make="make -s";
161       else
162           make="make";
163       fi
164     - top=${PWD}
165     - if [ -n "$DESTDIR" ]; then
166           cd _build;
167       fi
168     - if $make update; then
169           echo -e '+\057 MAKE UPDATE OK';
170       else
171           echo -e '+\057 MAKE UPDATE FAILED'; false;
172       fi;
173       git diff --exit-code
174     - if [ -n "$CHECKDOCS" ]; then
175           if $make doc-nits; then
176               echo -e '+\057\057 MAKE DOC-NITS OK';
177           else
178               echo -e '+\057\057 MAKE DOC-NITS FAILED'; false;
179           fi;
180       fi
181     - if $make; then
182           echo -e '+\057\057\057 MAKE OK';
183       else
184           echo -e '+\057\057\057 MAKE FAILED'; false;
185       fi;
186     - if [ -z "$BUILDONLY" ]; then
187           if [ -n "$CROSS_COMPILE" ]; then
188               sudo dpkg --add-architecture i386;
189               sudo apt-get update;
190               sudo apt-get -yq --no-install-suggests --no-install-recommends --force-yes install wine;
191               export EXE_SHELL="wine" WINEPREFIX=`pwd`;
192           fi;
193           if [ -e krb5/src ]; then
194               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;
195           fi;
196           if HARNESS_VERBOSE=yes BORING_RUNNER_DIR=$top/boringssl/ssl/test/runner make test; then
197               echo -e '+\057\057\057\057 MAKE TEST OK';
198           else
199               echo -e '+\057\057\057\057 MAKE TEST FAILED'; false;
200           fi;
201       else
202           if $make build_tests >~/build.log 2>&1; then
203               echo -e '+\057\057\057\057\057 MAKE BUILD_TESTS OK';
204           else
205               echo -e '+\057\057\057\057\057 MAKE BUILD_TESTS FAILED';
206               cat ~/build.log
207               false;
208           fi;
209       fi
210     - if [ -n "$DESTDIR" ]; then
211           mkdir "$top/$DESTDIR";
212           if $make install install_docs DESTDIR="$top/$DESTDIR" >~/install.log 2>&1 ; then
213               echo -e '+\057\057\057\057\057\057 MAKE INSTALL OK';
214           else
215               echo -e '+\057\057\057\057\057\057 MAKE INSTALL FAILED';
216               cat ~/install.log;
217               false;
218           fi;
219       fi
220     - cd $top
221
222 after_success:
223     - if [ -n "$COVERALLS" ]; then
224           coveralls -b . --gcov gcov-5 --gcov-options '\-lpbc';
225       fi;
226
227 notifications:
228     email:
229         secure: "xeGNgWO7aoaDgRvcZubposqMsj36aU8c6F0oHfw+rUqltCQ14IgYCUwzocmR2O+Pa7B3Cx5VjMfBFHbQaajZsfod8vu7g+aGq/zkjwbhsr/SR4dljJjFJXLGZjIalm9KgP6KInmVDuINfCqP+MHIY5lZkNI7DMcyHDhVc5nSKvCXV7xTDNgmstvh8rB/z51WfHDqGqfBtiuK5FDNxmvYK8OFJ5W94Lu9LDlizcxwK3GAj7arOui7Z5w8bQ6p4seUE3IvJL1Zbj0pZHxvNb6Zeb2Pn8QF1qLlN8YmBktD4aiw0ce4wYRiL87uLgcOxZY7SVXtv2XYFIYWapU/FKjCqa6vK93V/H9eZWEIYNMKnN3wXm2beqVdnKek3OeGJ8v0y7MbSfuLfRtBqbTSNYnpU1Zuo4MQAvHvEPuwCAYkYQajOSRplMH5sULFKptuVqNtOMfjL8jHb8AEoL1acYIk43ydxeYrzzas4fqgCDJ52573/u0RNdF1lkQBLkuM365OB8VRqtpnoxcdEIY/qBc/8TzZ24fxyrs5qdHFcxGSgpN2EP6cJMqpvkemnCNSdhxUqfzm22N7a3O8+4LFSBGOnHto/PwdsvF/01yGYL0LoZTnoO1i6x7AMJPBh+eyDU0ZjGhj/msjmqeb9C8vRqQ+1WjHrIS1iqCD0Czib8tUPD4="