crypto/armcap.c: short-circuit processor capability probe in iOS builds.
[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             - clang-3.6
14             - gcc-5
15             - g++-5
16             - golang
17             - binutils-mingw-w64
18             - gcc-mingw-w64
19         sources:
20             - llvm-toolchain-precise-3.6
21             - ubuntu-toolchain-r-test
22
23 os:
24     - linux
25     - osx
26
27 compiler:
28     - clang
29     - gcc
30
31 env:
32     - CONFIG_OPTS="" DESTDIR="_install"
33     - CONFIG_OPTS="--debug no-shared enable-crypto-mdebug enable-rc5 enable-md2"
34     - CONFIG_OPTS="no-pic --strict-warnings" BUILDONLY="yes" CHECKDOCS="yes"
35     - CONFIG_OPTS="no-engine no-shared --strict-warnings" BUILDONLY="yes"
36     - CONFIG_OPTS="no-stdio --strict-warnings" BUILDONLY="yes"
37     - CONFIG_OPTS="no-ec" BUILDONLY="yes"
38
39 matrix:
40     include:
41         - os: linux
42           compiler: clang-3.6
43           env: CONFIG_OPTS="--strict-warnings no-deprecated" BUILDONLY="yes"
44         - os: linux
45           compiler: gcc-5
46           env: 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"
47         - os: linux
48           compiler: clang-3.6
49           env: CONFIG_OPTS="enable-msan"
50         - os: linux
51           compiler: clang-3.6
52           env: 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"
53         - os: linux
54           compiler: clang-3.6
55           env: CONFIG_OPTS="no-asm enable-asan enable-rc5 enable-md2 no-shared -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION"
56         - os: linux
57           compiler: gcc-5
58           env: CONFIG_OPTS="no-asm enable-ubsan enable-rc5 enable-md2 -DPEDANTIC"
59         - os: linux
60           compiler: gcc-5
61           env: CONFIG_OPTS="--strict-warnings enable-tls1_3" COMMENT="Move to the BORINGTEST build when interoperable"
62         - os: linux
63           compiler: i686-w64-mingw32-gcc
64           env: CONFIG_OPTS="no-stdio" BUILDONLY="yes"
65         - os: linux
66           compiler: i686-w64-mingw32-gcc
67           env: CONFIG_OPTS="no-pic"
68         - os: linux
69           compiler: x86_64-w64-mingw32-gcc
70           env: CONFIG_OPTS="no-pic"
71     exclude:
72         - os: linux
73           compiler: clang
74         - os: osx
75           compiler: gcc
76
77 before_script:
78     - if [ -n "$DESTDIR" ]; then
79           sh .travis-create-release.sh $TRAVIS_OS_NAME;
80           tar -xvzf _srcdist.tar.gz;
81           mkdir _build;
82           cd _build;
83           srcdir=../_srcdist;
84           top=..;
85       else
86           srcdir=.;
87           top=.;
88       fi
89     - if [ "$CC" == i686-w64-mingw32-gcc ]; then
90           export CROSS_COMPILE=${CC%%gcc}; unset CC;
91           $srcdir/Configure mingw $CONFIG_OPTS -Wno-pedantic-ms-format;
92       elif [ "$CC" == x86_64-w64-mingw32-gcc ]; then
93           export CROSS_COMPILE=${CC%%gcc}; unset CC;
94           $srcdir/Configure mingw64 $CONFIG_OPTS -Wno-pedantic-ms-format;
95       else
96           if which ccache >/dev/null && [ "$CC" != clang-3.6 ]; then
97               CC="ccache $CC";
98           fi;
99           $srcdir/config -v $CONFIG_OPTS;
100       fi
101     - cd $top
102
103 script:
104     - if [ -z "$BUILDONLY" ]; then
105           make="make -s";
106       else
107           make="make";
108       fi
109     - top=${PWD}
110     - if [ -n "$DESTDIR" ]; then
111           cd _build;
112       fi
113     - $make update
114     - if [ -n "$CHECKDOCS" ]; then
115           $make doc-nits;
116       fi
117     - $make
118     - if [ -z "$BUILDONLY" ]; then
119           if [ -n "$CROSS_COMPILE" ]; then
120               sudo apt-get -yq --no-install-suggests --no-install-recommends --force-yes install wine;
121               export EXE_SHELL="wine" WINEPREFIX=`pwd`;
122           fi;
123           HARNESS_VERBOSE=yes BORING_RUNNER_DIR=$top/boringssl/ssl/test/runner make test;
124       else
125           $make build_tests;
126       fi
127     - if [ -n "$DESTDIR" ]; then
128           mkdir "$top/$DESTDIR";
129           $make install install_docs DESTDIR="$top/$DESTDIR";
130       fi
131     - cd $top
132
133 after_success:
134     - if [ -n "$COVERALLS" ]; then
135           coveralls -b . --gcov gcov-5 --gcov-options '\-lp';
136       fi;
137
138 notifications:
139     email:
140         secure: "xeGNgWO7aoaDgRvcZubposqMsj36aU8c6F0oHfw+rUqltCQ14IgYCUwzocmR2O+Pa7B3Cx5VjMfBFHbQaajZsfod8vu7g+aGq/zkjwbhsr/SR4dljJjFJXLGZjIalm9KgP6KInmVDuINfCqP+MHIY5lZkNI7DMcyHDhVc5nSKvCXV7xTDNgmstvh8rB/z51WfHDqGqfBtiuK5FDNxmvYK8OFJ5W94Lu9LDlizcxwK3GAj7arOui7Z5w8bQ6p4seUE3IvJL1Zbj0pZHxvNb6Zeb2Pn8QF1qLlN8YmBktD4aiw0ce4wYRiL87uLgcOxZY7SVXtv2XYFIYWapU/FKjCqa6vK93V/H9eZWEIYNMKnN3wXm2beqVdnKek3OeGJ8v0y7MbSfuLfRtBqbTSNYnpU1Zuo4MQAvHvEPuwCAYkYQajOSRplMH5sULFKptuVqNtOMfjL8jHb8AEoL1acYIk43ydxeYrzzas4fqgCDJ52573/u0RNdF1lkQBLkuM365OB8VRqtpnoxcdEIY/qBc/8TzZ24fxyrs5qdHFcxGSgpN2EP6cJMqpvkemnCNSdhxUqfzm22N7a3O8+4LFSBGOnHto/PwdsvF/01yGYL0LoZTnoO1i6x7AMJPBh+eyDU0ZjGhj/msjmqeb9C8vRqQ+1WjHrIS1iqCD0Czib8tUPD4="