Evan Nemerson | 3e33d76 | 2016-06-23 12:20:37 -0700 | [diff] [blame] | 1 | language: c |
Evan Nemerson | 01f9cf9 | 2016-07-28 20:13:29 -0700 | [diff] [blame] | 2 | sudo: false |
Eugene Kliuchnikov | 6b1d0ab | 2017-09-18 13:05:47 +0200 | [diff] [blame] | 3 | branches: |
| 4 | only: |
| 5 | - master |
Evan Nemerson | 3e33d76 | 2016-06-23 12:20:37 -0700 | [diff] [blame] | 6 | matrix: |
Evan Nemerson | 37be4e3 | 2016-06-28 20:35:16 -0700 | [diff] [blame] | 7 | include: |
| 8 | ### |
| 9 | ## Linux builds using various versions of GCC. |
| 10 | ### |
| 11 | - os: linux |
Eugene Kliuchnikov | 87b43eb | 2017-09-18 13:52:53 +0200 | [diff] [blame] | 12 | env: BUILD_SYSTEM=cmake C_COMPILER=gcc-7 CXX_COMPILER=g++-7 |
| 13 | addons: |
| 14 | apt: |
| 15 | sources: |
| 16 | - ubuntu-toolchain-r-test |
| 17 | packages: |
| 18 | - gcc-7 |
| 19 | - g++-7 |
| 20 | - os: linux |
Evan Nemerson | 37be4e3 | 2016-06-28 20:35:16 -0700 | [diff] [blame] | 21 | env: BUILD_SYSTEM=cmake C_COMPILER=gcc-4.4 CXX_COMPILER=g++-4.4 |
| 22 | addons: |
| 23 | apt: |
| 24 | sources: |
| 25 | - ubuntu-toolchain-r-test |
| 26 | packages: |
| 27 | - gcc-4.4 |
| 28 | - g++-4.4 |
Evan Nemerson | 3e33d76 | 2016-06-23 12:20:37 -0700 | [diff] [blame] | 29 | |
Evan Nemerson | 37be4e3 | 2016-06-28 20:35:16 -0700 | [diff] [blame] | 30 | ### |
Eugene Kliuchnikov | 2d6b298 | 2017-11-30 20:54:04 +0100 | [diff] [blame] | 31 | ## Test that Autotools build works. |
Eugene Kliuchnikov | 4f8cd4c | 2017-09-26 13:49:30 +0200 | [diff] [blame] | 32 | ### |
| 33 | - os: linux |
Eugene Kliuchnikov | 2d6b298 | 2017-11-30 20:54:04 +0100 | [diff] [blame] | 34 | env: BUILD_SYSTEM=autotools C_COMPILER=gcc-5 CXX_COMPILER=g++-5 |
Eugene Kliuchnikov | 4f8cd4c | 2017-09-26 13:49:30 +0200 | [diff] [blame] | 35 | addons: |
| 36 | apt: |
| 37 | sources: |
| 38 | - ubuntu-toolchain-r-test |
Eugene Kliuchnikov | 4f8cd4c | 2017-09-26 13:49:30 +0200 | [diff] [blame] | 39 | packages: |
Eugene Kliuchnikov | 2d6b298 | 2017-11-30 20:54:04 +0100 | [diff] [blame] | 40 | - gcc-5 |
| 41 | - g++-5 |
| 42 | |
| 43 | ### |
| 44 | ## Test that fuzzer is compiling / working. |
| 45 | ### |
| 46 | - os: linux |
Eugene Kliuchnikov | ca21dac | 2019-08-07 10:51:55 +0200 | [diff] [blame] | 47 | env: BUILD_SYSTEM=fuzz C_COMPILER=clang-7 CXX_COMPILER=clang++-7 ASAN_OPTIONS=detect_leaks=0 |
Eugene Kliuchnikov | 2d6b298 | 2017-11-30 20:54:04 +0100 | [diff] [blame] | 48 | addons: |
| 49 | apt: |
| 50 | sources: |
| 51 | - ubuntu-toolchain-r-test |
Eugene Kliuchnikov | ca21dac | 2019-08-07 10:51:55 +0200 | [diff] [blame] | 52 | - llvm-toolchain-xenial-7 |
Eugene Kliuchnikov | 2d6b298 | 2017-11-30 20:54:04 +0100 | [diff] [blame] | 53 | packages: |
Eugene Kliuchnikov | ca21dac | 2019-08-07 10:51:55 +0200 | [diff] [blame] | 54 | - clang-7 |
Eugene Kliuchnikov | 4f8cd4c | 2017-09-26 13:49:30 +0200 | [diff] [blame] | 55 | |
| 56 | ### |
Evan Nemerson | 1d15c95 | 2016-07-22 19:14:29 -0700 | [diff] [blame] | 57 | ## clang on Linux |
Evan Nemerson | 37be4e3 | 2016-06-28 20:35:16 -0700 | [diff] [blame] | 58 | ### |
| 59 | - os: linux |
Eugene Kliuchnikov | ca21dac | 2019-08-07 10:51:55 +0200 | [diff] [blame] | 60 | env: BUILD_SYSTEM=cmake C_COMPILER=clang-7 CXX_COMPILER=clang++-7 |
Evan Nemerson | 1d15c95 | 2016-07-22 19:14:29 -0700 | [diff] [blame] | 61 | addons: |
| 62 | apt: |
| 63 | sources: |
Eugene Kliuchnikov | ca21dac | 2019-08-07 10:51:55 +0200 | [diff] [blame] | 64 | - llvm-toolchain-xenial-7 |
Evan Nemerson | 1d15c95 | 2016-07-22 19:14:29 -0700 | [diff] [blame] | 65 | - ubuntu-toolchain-r-test |
| 66 | packages: |
Eugene Kliuchnikov | ca21dac | 2019-08-07 10:51:55 +0200 | [diff] [blame] | 67 | - clang-7 |
Evan Nemerson | 1d15c95 | 2016-07-22 19:14:29 -0700 | [diff] [blame] | 68 | - os: linux |
| 69 | env: BUILD_SYSTEM=cmake C_COMPILER=clang-3.5 CXX_COMPILER=clang++-3.5 |
| 70 | addons: |
| 71 | apt: |
| 72 | sources: |
Eugene Kliuchnikov | 87b43eb | 2017-09-18 13:52:53 +0200 | [diff] [blame] | 73 | - llvm-toolchain-trusty-3.5 |
Evan Nemerson | 1d15c95 | 2016-07-22 19:14:29 -0700 | [diff] [blame] | 74 | - ubuntu-toolchain-r-test |
| 75 | packages: |
| 76 | - clang-3.5 |
Evan Nemerson | 37be4e3 | 2016-06-28 20:35:16 -0700 | [diff] [blame] | 77 | |
| 78 | ### |
Stephen Kyle | 67f059e | 2018-09-27 10:00:33 +0100 | [diff] [blame] | 79 | ## testing arm via qemu on Linux |
| 80 | ### |
| 81 | - os: linux |
Stephen Kyle | 7a153eb | 2018-10-17 16:29:32 +0100 | [diff] [blame] | 82 | env: BUILD_SYSTEM=cmake C_COMPILER=arm-linux-gnueabihf-gcc CXX_COMPILER=arm-linux-gnueabihf-g++ CFLAGS="-march=armv7-a -mfloat-abi=hard -mfpu=neon" |
Stephen Kyle | 67f059e | 2018-09-27 10:00:33 +0100 | [diff] [blame] | 83 | addons: |
| 84 | apt: |
| 85 | sources: |
| 86 | - ubuntu-toolchain-r-test |
| 87 | packages: |
| 88 | - qemu |
| 89 | - gcc-arm-linux-gnueabihf |
| 90 | - libc6-dev-armhf-cross |
| 91 | |
| 92 | ### |
Evan Nemerson | d03c38d | 2017-02-19 01:06:13 -0800 | [diff] [blame] | 93 | ## PGI Community Edition on Linux |
| 94 | ### |
Eugene Kliuchnikov | 223d80c | 2020-08-26 12:32:27 +0200 | [diff] [blame] | 95 | # Installer is currently broken |
| 96 | #- os: linux |
| 97 | # env: BUILD_SYSTEM=cmake C_COMPILER=pgcc CXX_COMPILER=pgc++ |
Evan Nemerson | d03c38d | 2017-02-19 01:06:13 -0800 | [diff] [blame] | 98 | |
| 99 | ### |
Cosimo Lupo | 4f455ca | 2017-08-23 19:45:13 +0100 | [diff] [blame] | 100 | ## Python 2.7 and 3.6 builds on Linux |
Evan Nemerson | 37be4e3 | 2016-06-28 20:35:16 -0700 | [diff] [blame] | 101 | ### |
| 102 | - os: linux |
Cosimo Lupo | 4f455ca | 2017-08-23 19:45:13 +0100 | [diff] [blame] | 103 | language: python |
| 104 | python: 2.7 |
Eugene Kliuchnikov | 2d6b298 | 2017-11-30 20:54:04 +0100 | [diff] [blame] | 105 | env: BUILD_SYSTEM=python C_COMPILER=gcc-5 CXX_COMPILER=g++-5 |
Cosimo Lupo | 4f455ca | 2017-08-23 19:45:13 +0100 | [diff] [blame] | 106 | addons: |
| 107 | apt: |
| 108 | sources: |
| 109 | - ubuntu-toolchain-r-test |
| 110 | packages: |
Eugene Kliuchnikov | 2d6b298 | 2017-11-30 20:54:04 +0100 | [diff] [blame] | 111 | - gcc-5 |
| 112 | - g++-5 |
Cosimo Lupo | 4f455ca | 2017-08-23 19:45:13 +0100 | [diff] [blame] | 113 | - os: linux |
| 114 | language: python |
| 115 | python: 3.6 |
Eugene Kliuchnikov | 2d6b298 | 2017-11-30 20:54:04 +0100 | [diff] [blame] | 116 | env: BUILD_SYSTEM=python C_COMPILER=gcc-5 CXX_COMPILER=g++-5 |
Evan Nemerson | 37be4e3 | 2016-06-28 20:35:16 -0700 | [diff] [blame] | 117 | addons: |
| 118 | apt: |
| 119 | sources: |
| 120 | - ubuntu-toolchain-r-test |
| 121 | packages: |
Eugene Kliuchnikov | 2d6b298 | 2017-11-30 20:54:04 +0100 | [diff] [blame] | 122 | - gcc-5 |
| 123 | - g++-5 |
Evan Nemerson | 37be4e3 | 2016-06-28 20:35:16 -0700 | [diff] [blame] | 124 | |
| 125 | ### |
| 126 | ## CMake on OS X |
| 127 | ## |
| 128 | ## These all work, but it seems unnecessary to actually build them |
| 129 | ## all since we already test all these versions of GCC on Linux. |
| 130 | ## We'll just test 4.4 and the most recent version. |
| 131 | ### |
Eugene Kliuchnikov | 87b43eb | 2017-09-18 13:52:53 +0200 | [diff] [blame] | 132 | - os: osx |
Eugene Kliuchnikov | 2216a0d | 2018-09-13 08:09:32 -0400 | [diff] [blame] | 133 | env: BUILD_SYSTEM=cmake C_COMPILER=gcc CXX_COMPILER=g++ |
Eugene Kliuchnikov | ea9c51e | 2016-09-20 10:11:46 +0200 | [diff] [blame] | 134 | - os: osx |
Eugene Kliuchnikov | 68db5c0 | 2018-04-13 11:44:34 +0200 | [diff] [blame] | 135 | env: BUILD_SYSTEM=cmake C_COMPILER=gcc-4.9 CXX_COMPILER=g++-4.9 |
| 136 | - os: osx |
Eugene Kliuchnikov | 68db5c0 | 2018-04-13 11:44:34 +0200 | [diff] [blame] | 137 | env: BUILD_SYSTEM=cmake |
Evan Nemerson | 37be4e3 | 2016-06-28 20:35:16 -0700 | [diff] [blame] | 138 | |
| 139 | ### |
Cosimo Lupo | 4f455ca | 2017-08-23 19:45:13 +0100 | [diff] [blame] | 140 | ## Python 2.7 OS X build (using the system /usr/bin/python) |
Evan Nemerson | 37be4e3 | 2016-06-28 20:35:16 -0700 | [diff] [blame] | 141 | ### |
| 142 | - os: osx |
Cosimo Lupo | 4f455ca | 2017-08-23 19:45:13 +0100 | [diff] [blame] | 143 | env: BUILD_SYSTEM=python C_COMPILER=gcc CXX_COMPILER=g++ |
Evan Nemerson | 37be4e3 | 2016-06-28 20:35:16 -0700 | [diff] [blame] | 144 | |
| 145 | ### |
| 146 | ## Sanitizers |
Evan Nemerson | 37be4e3 | 2016-06-28 20:35:16 -0700 | [diff] [blame] | 147 | ### |
Evan Nemerson | 45862fc | 2016-07-22 20:09:09 -0700 | [diff] [blame] | 148 | - os: linux |
Eugene Kliuchnikov | ca21dac | 2019-08-07 10:51:55 +0200 | [diff] [blame] | 149 | env: BUILD_SYSTEM=cmake C_COMPILER=clang-7 CXX_COMPILER=clang++-7 SANITIZER=address ASAN_OPTIONS=detect_leaks=0 |
Evan Nemerson | 45862fc | 2016-07-22 20:09:09 -0700 | [diff] [blame] | 150 | addons: |
| 151 | apt: |
| 152 | sources: |
| 153 | - ubuntu-toolchain-r-test |
Eugene Kliuchnikov | ca21dac | 2019-08-07 10:51:55 +0200 | [diff] [blame] | 154 | - llvm-toolchain-xenial-7 |
Evan Nemerson | 45862fc | 2016-07-22 20:09:09 -0700 | [diff] [blame] | 155 | packages: |
Eugene Kliuchnikov | ca21dac | 2019-08-07 10:51:55 +0200 | [diff] [blame] | 156 | - clang-7 |
Evan Nemerson | 26a5935 | 2016-07-26 08:22:58 -0700 | [diff] [blame] | 157 | - os: linux |
Eugene Kliuchnikov | ca21dac | 2019-08-07 10:51:55 +0200 | [diff] [blame] | 158 | env: BUILD_SYSTEM=cmake C_COMPILER=clang-7 CXX_COMPILER=clang++-7 SANITIZER=thread |
Evan Nemerson | 26a5935 | 2016-07-26 08:22:58 -0700 | [diff] [blame] | 159 | addons: |
| 160 | apt: |
| 161 | sources: |
| 162 | - ubuntu-toolchain-r-test |
Eugene Kliuchnikov | ca21dac | 2019-08-07 10:51:55 +0200 | [diff] [blame] | 163 | - llvm-toolchain-xenial-7 |
Evan Nemerson | 26a5935 | 2016-07-26 08:22:58 -0700 | [diff] [blame] | 164 | packages: |
Eugene Kliuchnikov | ca21dac | 2019-08-07 10:51:55 +0200 | [diff] [blame] | 165 | - clang-7 |
Evan Nemerson | 26a5935 | 2016-07-26 08:22:58 -0700 | [diff] [blame] | 166 | - os: linux |
Eugene Kliuchnikov | ca21dac | 2019-08-07 10:51:55 +0200 | [diff] [blame] | 167 | env: BUILD_SYSTEM=cmake C_COMPILER=clang-7 CXX_COMPILER=clang++-7 SANITIZER=undefined CFLAGS="-fno-sanitize-recover=undefined,integer" |
Evan Nemerson | 26a5935 | 2016-07-26 08:22:58 -0700 | [diff] [blame] | 168 | addons: |
| 169 | apt: |
| 170 | sources: |
| 171 | - ubuntu-toolchain-r-test |
Eugene Kliuchnikov | ca21dac | 2019-08-07 10:51:55 +0200 | [diff] [blame] | 172 | - llvm-toolchain-xenial-7 |
Evan Nemerson | 26a5935 | 2016-07-26 08:22:58 -0700 | [diff] [blame] | 173 | packages: |
Eugene Kliuchnikov | ca21dac | 2019-08-07 10:51:55 +0200 | [diff] [blame] | 174 | - clang-7 |
Evan Nemerson | 03657e8 | 2016-07-28 13:31:09 -0700 | [diff] [blame] | 175 | |
Eugene Kliuchnikov | ee5c719 | 2017-03-22 19:13:59 +0100 | [diff] [blame] | 176 | - os: linux |
| 177 | env: BUILD_SYSTEM=maven |
Eugene Kliuchnikov | ca21dac | 2019-08-07 10:51:55 +0200 | [diff] [blame] | 178 | jdk: |
| 179 | # maven + jdk11 + javadoc == trouble |
| 180 | - openjdk10 |
Eugene Kliuchnikov | ee5c719 | 2017-03-22 19:13:59 +0100 | [diff] [blame] | 181 | language: java |
| 182 | |
Eugene Kliuchnikov | 22421eb | 2017-03-23 13:35:53 +0100 | [diff] [blame] | 183 | - os: linux |
Eugene Kliuchnikov | 22421eb | 2017-03-23 13:35:53 +0100 | [diff] [blame] | 184 | sudo: required |
Eugene Kliuchnikov | e51eae5 | 2017-06-22 10:58:13 +0200 | [diff] [blame] | 185 | language: java |
Eugene Kliuchnikov | 2216a0d | 2018-09-13 08:09:32 -0400 | [diff] [blame] | 186 | jdk: oraclejdk9 |
Eugene Kliuchnikov | 22421eb | 2017-03-23 13:35:53 +0100 | [diff] [blame] | 187 | env: BUILD_SYSTEM=bazel |
| 188 | addons: |
| 189 | apt: |
| 190 | sources: |
Eugene Kliuchnikov | efdff3f | 2017-06-22 11:38:49 +0200 | [diff] [blame] | 191 | - sourceline: "deb [arch=amd64] http://storage.googleapis.com/bazel-apt stable jdk1.8" |
| 192 | key_url: "https://storage.googleapis.com/bazel-apt/doc/apt-key.pub.gpg" |
Eugene Kliuchnikov | 22421eb | 2017-03-23 13:35:53 +0100 | [diff] [blame] | 193 | - ubuntu-toolchain-r-test |
| 194 | packages: |
Eugene Kliuchnikov | efdff3f | 2017-06-22 11:38:49 +0200 | [diff] [blame] | 195 | - bazel |
Eugene Kliuchnikov | 22421eb | 2017-03-23 13:35:53 +0100 | [diff] [blame] | 196 | |
| 197 | - os: osx |
| 198 | env: BUILD_SYSTEM=bazel |
Eugene Kliuchnikov | f83aa51 | 2020-03-31 14:38:01 +0200 | [diff] [blame] | 199 | osx_image: xcode11.3 |
Eugene Kliuchnikov | 2216a0d | 2018-09-13 08:09:32 -0400 | [diff] [blame] | 200 | language: java |
Eugene Kliuchnikov | 22421eb | 2017-03-23 13:35:53 +0100 | [diff] [blame] | 201 | |
Evan Nemerson | 37be4e3 | 2016-06-28 20:35:16 -0700 | [diff] [blame] | 202 | before_install: |
| 203 | ### |
Evan Nemerson | 26a5935 | 2016-07-26 08:22:58 -0700 | [diff] [blame] | 204 | ## If we use the matrix to set CC/CXX Travis, overwrites the values, |
Evan Nemerson | 37be4e3 | 2016-06-28 20:35:16 -0700 | [diff] [blame] | 205 | ## so instead we use C/CXX_COMPILER, then copy the values to CC/CXX |
| 206 | ## here (after Travis has set CC/CXX). |
| 207 | ### |
| 208 | - if [ -n "${C_COMPILER}" ]; then export CC="${C_COMPILER}"; fi |
| 209 | - if [ -n "${CXX_COMPILER}" ]; then export CXX="${CXX_COMPILER}"; fi |
Eugene Kliuchnikov | 6ece1d8 | 2017-04-23 14:07:08 +0200 | [diff] [blame] | 210 | - scripts/.travis.sh before_install |
Cosimo Lupo | bb3d924 | 2015-08-11 12:39:49 +0100 | [diff] [blame] | 211 | install: |
Eugene Kliuchnikov | 6ece1d8 | 2017-04-23 14:07:08 +0200 | [diff] [blame] | 212 | - scripts/.travis.sh install |
Cosimo Lupo | bb3d924 | 2015-08-11 12:39:49 +0100 | [diff] [blame] | 213 | script: |
Eugene Kliuchnikov | 6ece1d8 | 2017-04-23 14:07:08 +0200 | [diff] [blame] | 214 | - scripts/.travis.sh script |
Cosimo Lupo | bb3d924 | 2015-08-11 12:39:49 +0100 | [diff] [blame] | 215 | after_success: |
Eugene Kliuchnikov | 6ece1d8 | 2017-04-23 14:07:08 +0200 | [diff] [blame] | 216 | - scripts/.travis.sh after_success |
Evan Nemerson | 3e33d76 | 2016-06-23 12:20:37 -0700 | [diff] [blame] | 217 | |
Cosimo Lupo | bb3d924 | 2015-08-11 12:39:49 +0100 | [diff] [blame] | 218 | before_deploy: |
Eugene Kliuchnikov | 6ece1d8 | 2017-04-23 14:07:08 +0200 | [diff] [blame] | 219 | - scripts/.travis.sh before_deploy |
Cosimo Lupo | 6dcb0dd | 2015-08-12 15:57:03 +0100 | [diff] [blame] | 220 | |
Zoltan Szabadka | 070dacb | 2015-08-31 15:34:42 +0200 | [diff] [blame] | 221 | deploy: |
Eugene Kliuchnikov | 187904a | 2017-03-24 12:54:20 +0100 | [diff] [blame] | 222 | - provider: bintray |
Eugene Kliuchnikov | 6ece1d8 | 2017-04-23 14:07:08 +0200 | [diff] [blame] | 223 | file: "scripts/.bintray.json" |
Eugene Kliuchnikov | 187904a | 2017-03-24 12:54:20 +0100 | [diff] [blame] | 224 | user: "eustas" |
| 225 | key: |
| 226 | secure: "Kbam/lTAdz72fZivbs6riJT+Y4PbuKP7r6t5PAWxJxAAykjwnYTRe3zF472g9HCE14KYMsdB+KSYSgg6TGJnqGC9gL9xhhGU9U/WmA+vbMWS/MSnMWpK9IRpp77pM2i2NKZD4v33JuEwKFCBJP3Vj6QQ5Qd1NKdobuXJyznhgnw=" |
| 227 | on: |
| 228 | condition: "${BUILD_SYSTEM} = bazel" |
| 229 | skip_cleanup: true |