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