Revert "Integration build a small memory image"
[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
26 compiler:
27     - clang
28     - gcc
29
30 env:
31     - CONFIG_OPTS="" DESTDIR="_install" TESTS="-test_fuzz"
32     - CONFIG_OPTS="no-asm -Werror --debug no-afalgeng no-shared enable-crypto-mdebug enable-rc5 enable-md2 enable-aria" TESTS="-test_fuzz"
33     - CONFIG_OPTS="no-asm --strict-warnings" BUILDONLY="yes" CHECKDOCS="yes"
34
35 matrix:
36     include:
37         - os: linux
38           addons:
39               apt:
40                   packages:
41                       - gcc-5
42                       - g++-5
43                   sources:
44                       - ubuntu-toolchain-r-test
45           compiler: gcc-5
46           env: CONFIG_OPTS="--strict-warnings enable-tls1_3" TESTS="-test_fuzz" COMMENT="Move to the BORINGTEST build when interoperable"
47         - os: linux
48           addons:
49               apt:
50                   packages:
51                       - clang-3.9
52                   sources:
53                       - llvm-toolchain-trusty-3.9
54                       - ubuntu-toolchain-r-test
55           compiler: clang-3.9
56           env: CONFIG_OPTS="--strict-warnings no-deprecated" BUILDONLY="yes"
57         - os: linux
58           addons:
59               apt:
60                   packages:
61                       - binutils-mingw-w64
62                       - gcc-mingw-w64
63           compiler: i686-w64-mingw32-gcc
64           env: CONFIG_OPTS="no-stdio" BUILDONLY="yes"
65         - os: linux
66           addons:
67               apt:
68                   packages:
69                       - gcc-5
70                       - g++-5
71                   sources:
72                       - ubuntu-toolchain-r-test
73           compiler: gcc-5
74           env:  EXTENDED_TEST="yes" CONFIG_OPTS="--debug --coverage no-asm enable-rc5 enable-md2 enable-aria 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"
75         - os: linux
76           addons:
77               apt:
78                   packages:
79                       - gcc-5
80                       - g++-5
81                   sources:
82                       - ubuntu-toolchain-r-test
83           compiler: gcc-5
84           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
85         - os: linux
86           addons:
87               apt:
88                   packages:
89                       - clang-3.9
90                   sources:
91                       - llvm-toolchain-trusty-3.9
92                       - ubuntu-toolchain-r-test
93           compiler: clang-3.9
94           env: EXTENDED_TEST="yes" CONFIG_OPTS="enable-msan"
95         - os: linux
96           addons:
97               apt:
98                   packages:
99                       - clang-3.9
100                   sources:
101                       - llvm-toolchain-trusty-3.9
102                       - ubuntu-toolchain-r-test
103           compiler: clang-3.9
104           env:  EXTENDED_TEST="yes" CONFIG_OPTS="no-asm enable-ubsan enable-rc5 enable-md2 enable-aria enable-ssl3 enable-ssl3-method enable-nextprotoneg -fno-sanitize=alignment no-shared -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION"
105         - os: linux
106           addons:
107               apt:
108                   packages:
109                       - clang-3.9
110                   sources:
111                       - llvm-toolchain-trusty-3.9
112                       - ubuntu-toolchain-r-test
113           compiler: clang-3.9
114           env: EXTENDED_TEST="yes" CONFIG_OPTS="no-asm enable-asan enable-rc5 enable-md2 enable-aria no-shared -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION"
115         - os: linux
116           addons:
117               apt:
118                   packages:
119                       - gcc-5
120                       - g++-5
121                   sources:
122                       - ubuntu-toolchain-r-test
123           compiler: gcc-5
124           env: EXTENDED_TEST="yes" CONFIG_OPTS="no-asm enable-ubsan enable-rc5 enable-md2 enable-aria -DPEDANTIC" OPENSSL_TEST_RAND_ORDER=0
125         - os: linux
126           addons:
127               apt:
128                   packages:
129                       - binutils-mingw-w64
130                       - gcc-mingw-w64
131           compiler: i686-w64-mingw32-gcc
132           env: EXTENDED_TEST="yes" CONFIG_OPTS="no-pic" TESTS="-test_fuzz"
133         - os: linux
134           addons:
135               apt:
136                   packages:
137                       - binutils-mingw-w64
138                       - gcc-mingw-w64
139           compiler: x86_64-w64-mingw32-gcc
140           env: EXTENDED_TEST="yes" CONFIG_OPTS="no-pic" TESTS="-test_fuzz"
141     exclude:
142         - os: linux
143           compiler: clang
144         - os: osx
145           compiler: gcc
146
147 before_script:
148     - env
149     - if [ "$TRAVIS_PULL_REQUEST" != "false" -a -n "$EXTENDED_TEST" ]; then
150           (git log -1 $TRAVIS_COMMIT_RANGE | grep '\[extended tests\]' > /dev/null) || exit 0;
151       fi
152     - if [ -n "$DESTDIR" ]; then
153           sh .travis-create-release.sh $TRAVIS_OS_NAME;
154           tar -xvzf _srcdist.tar.gz;
155           mkdir _build;
156           cd _build;
157           srcdir=../_srcdist;
158           top=..;
159       else
160           srcdir=.;
161           top=.;
162       fi
163     - if [ "$CC" == i686-w64-mingw32-gcc ]; then
164           export CROSS_COMPILE=${CC%%gcc}; unset CC;
165           $srcdir/Configure mingw $CONFIG_OPTS -Wno-pedantic-ms-format;
166       elif [ "$CC" == x86_64-w64-mingw32-gcc ]; then
167           export CROSS_COMPILE=${CC%%gcc}; unset CC;
168           $srcdir/Configure mingw64 $CONFIG_OPTS -Wno-pedantic-ms-format;
169       else
170           if which ccache >/dev/null && [ "$CC" != clang-3.9 ]; then
171               CC="ccache $CC";
172           fi;
173           $srcdir/config -v $CONFIG_OPTS;
174       fi
175     - cd $top
176
177 script:
178     - if [ -z "$BUILDONLY" ]; then
179           make="make -s";
180       else
181           make="make";
182       fi
183     - top=${PWD}
184     - if [ -n "$DESTDIR" ]; then
185           cd _build;
186       fi
187     - $make update
188     - if [ -n "$CHECKDOCS" ]; then
189           $make doc-nits;
190       fi
191     - $make
192     - if [ -z "$BUILDONLY" ]; then
193           if [ -n "$CROSS_COMPILE" ]; then
194               sudo dpkg --add-architecture i386;
195               sudo apt-get update;
196               sudo apt-get -yq --no-install-suggests --no-install-recommends --force-yes install wine;
197               export EXE_SHELL="wine" WINEPREFIX=`pwd`;
198           fi;
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;
202           HARNESS_VERBOSE=yes BORING_RUNNER_DIR=$top/boringssl/ssl/test/runner make test;
203       else
204           $make build_tests;
205       fi
206     - if [ -n "$DESTDIR" ]; then
207           mkdir "$top/$DESTDIR";
208           $make install install_docs DESTDIR="$top/$DESTDIR";
209       fi
210     - cd $top
211
212 after_success:
213     - if [ -n "$COVERALLS" ]; then
214           coveralls -b . --gcov gcov-5 --gcov-options '\-lp';
215       fi;
216
217 notifications:
218     email:
219         secure: "xeGNgWO7aoaDgRvcZubposqMsj36aU8c6F0oHfw+rUqltCQ14IgYCUwzocmR2O+Pa7B3Cx5VjMfBFHbQaajZsfod8vu7g+aGq/zkjwbhsr/SR4dljJjFJXLGZjIalm9KgP6KInmVDuINfCqP+MHIY5lZkNI7DMcyHDhVc5nSKvCXV7xTDNgmstvh8rB/z51WfHDqGqfBtiuK5FDNxmvYK8OFJ5W94Lu9LDlizcxwK3GAj7arOui7Z5w8bQ6p4seUE3IvJL1Zbj0pZHxvNb6Zeb2Pn8QF1qLlN8YmBktD4aiw0ce4wYRiL87uLgcOxZY7SVXtv2XYFIYWapU/FKjCqa6vK93V/H9eZWEIYNMKnN3wXm2beqVdnKek3OeGJ8v0y7MbSfuLfRtBqbTSNYnpU1Zuo4MQAvHvEPuwCAYkYQajOSRplMH5sULFKptuVqNtOMfjL8jHb8AEoL1acYIk43ydxeYrzzas4fqgCDJ52573/u0RNdF1lkQBLkuM365OB8VRqtpnoxcdEIY/qBc/8TzZ24fxyrs5qdHFcxGSgpN2EP6cJMqpvkemnCNSdhxUqfzm22N7a3O8+4LFSBGOnHto/PwdsvF/01yGYL0LoZTnoO1i6x7AMJPBh+eyDU0ZjGhj/msjmqeb9C8vRqQ+1WjHrIS1iqCD0Czib8tUPD4="