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