You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

409 lines
11 KiB

  1. # This file was inspired from https://github.com/google/fruit
  2. #
  3. # General config
  4. #
  5. branches:
  6. only:
  7. - master
  8. dist: trusty
  9. language: cpp
  10. # Enable caching
  11. cache:
  12. timeout: 600
  13. directories:
  14. - build
  15. - travis/mtime_cache
  16. # Enable docker support
  17. services:
  18. - docker
  19. sudo: required
  20. #
  21. # Configurations
  22. #
  23. jobs:
  24. include:
  25. ###
  26. # Stage: Build (1st run)
  27. ###
  28. # osx
  29. - stage: Build (1st run)
  30. os: osx
  31. compiler: clang
  32. env: CONFIG=DefaultDebug COMPILER=clang-4.0 STL=libc++
  33. install:
  34. travis/install_osx.sh
  35. script:
  36. travis/build.sh Build1
  37. after_failure:
  38. - find build -iname '*err*.log' -type f -print -exec cat {} \;
  39. - stage: Build (1st run)
  40. os: osx
  41. compiler: clang
  42. env: CONFIG=DefaultRelease COMPILER=clang-4.0 STL=libc++
  43. install:
  44. travis/install_osx.sh
  45. script:
  46. travis/build.sh Build1
  47. after_failure:
  48. - find build -iname '*err*.log' -type f -print -exec cat {} \;
  49. # ubuntu-16.10
  50. - stage: Build (1st run)
  51. os: linux
  52. compiler: gcc
  53. env: CONFIG=DefaultDebug LINUX=ubuntu-16.10 COMPILER=gcc-6
  54. install:
  55. travis/install_linux.sh
  56. script:
  57. travis/build.sh Build1
  58. before_cache:
  59. docker cp storm:/storm/. .
  60. after_failure:
  61. - find build -iname '*err*.log' -type f -print -exec cat {} \;
  62. - stage: Build (1st run)
  63. os: linux
  64. compiler: gcc
  65. env: CONFIG=DefaultRelease LINUX=ubuntu-16.10 COMPILER=gcc-6
  66. install:
  67. travis/install_linux.sh
  68. script:
  69. travis/build.sh Build1
  70. before_cache:
  71. docker cp storm:/storm/. .
  72. after_failure:
  73. - find build -iname '*err*.log' -type f -print -exec cat {} \;
  74. # debian-9
  75. - stage: Build (1st run)
  76. os: linux
  77. compiler: gcc
  78. env: CONFIG=DefaultDebug LINUX=debian-9 COMPILER=gcc-6
  79. install:
  80. travis/install_linux.sh
  81. script:
  82. travis/build.sh Build1
  83. before_cache:
  84. docker cp storm:/storm/. .
  85. after_failure:
  86. - find build -iname '*err*.log' -type f -print -exec cat {} \;
  87. - stage: Build (1st run)
  88. os: linux
  89. compiler: gcc
  90. env: CONFIG=DefaultRelease LINUX=debian-9 COMPILER=gcc-6
  91. install:
  92. travis/install_linux.sh
  93. script:
  94. travis/build.sh Build1
  95. before_cache:
  96. docker cp storm:/storm/. .
  97. after_failure:
  98. - find build -iname '*err*.log' -type f -print -exec cat {} \;
  99. ###
  100. # Stage: Build (2nd run)
  101. ###
  102. # osx
  103. - stage: Build (2nd run)
  104. os: osx
  105. compiler: clang
  106. env: CONFIG=DefaultDebug COMPILER=clang-4.0 STL=libc++
  107. install:
  108. travis/install_osx.sh
  109. script:
  110. travis/build.sh Build2
  111. after_failure:
  112. - find build -iname '*err*.log' -type f -print -exec cat {} \;
  113. - stage: Build (2nd run)
  114. os: osx
  115. compiler: clang
  116. env: CONFIG=DefaultRelease COMPILER=clang-4.0 STL=libc++
  117. install:
  118. travis/install_osx.sh
  119. script:
  120. travis/build.sh Build2
  121. after_failure:
  122. - find build -iname '*err*.log' -type f -print -exec cat {} \;
  123. # ubuntu-16.10
  124. - stage: Build (2nd run)
  125. os: linux
  126. compiler: gcc
  127. env: CONFIG=DefaultDebug LINUX=ubuntu-16.10 COMPILER=gcc-6
  128. install:
  129. travis/install_linux.sh
  130. script:
  131. travis/build.sh Build2
  132. before_cache:
  133. docker cp storm:/storm/. .
  134. after_failure:
  135. - find build -iname '*err*.log' -type f -print -exec cat {} \;
  136. - stage: Build (2nd run)
  137. os: linux
  138. compiler: gcc
  139. env: CONFIG=DefaultRelease LINUX=ubuntu-16.10 COMPILER=gcc-6
  140. install:
  141. travis/install_linux.sh
  142. script:
  143. travis/build.sh Build2
  144. before_cache:
  145. docker cp storm:/storm/. .
  146. after_failure:
  147. - find build -iname '*err*.log' -type f -print -exec cat {} \;
  148. # debian-9
  149. - stage: Build (2nd run)
  150. os: linux
  151. compiler: gcc
  152. env: CONFIG=DefaultDebug LINUX=debian-9 COMPILER=gcc-6
  153. install:
  154. travis/install_linux.sh
  155. script:
  156. travis/build.sh Build2
  157. before_cache:
  158. docker cp storm:/storm/. .
  159. after_failure:
  160. - find build -iname '*err*.log' -type f -print -exec cat {} \;
  161. - stage: Build (2nd run)
  162. os: linux
  163. compiler: gcc
  164. env: CONFIG=DefaultRelease LINUX=debian-9 COMPILER=gcc-6
  165. install:
  166. travis/install_linux.sh
  167. script:
  168. travis/build.sh Build2
  169. before_cache:
  170. docker cp storm:/storm/. .
  171. after_failure:
  172. - find build -iname '*err*.log' -type f -print -exec cat {} \;
  173. ###
  174. # Stage: Build (3rd run)
  175. ###
  176. # osx
  177. - stage: Build (3rd run)
  178. os: osx
  179. compiler: clang
  180. env: CONFIG=DefaultDebug COMPILER=clang-4.0 STL=libc++
  181. install:
  182. travis/install_osx.sh
  183. script:
  184. travis/build.sh Build3
  185. after_failure:
  186. - find build -iname '*err*.log' -type f -print -exec cat {} \;
  187. - stage: Build (3rd run)
  188. os: osx
  189. compiler: clang
  190. env: CONFIG=DefaultRelease COMPILER=clang-4.0 STL=libc++
  191. install:
  192. travis/install_osx.sh
  193. script:
  194. travis/build.sh Build3
  195. after_failure:
  196. - find build -iname '*err*.log' -type f -print -exec cat {} \;
  197. # ubuntu-16.10
  198. - stage: Build (3rd run)
  199. os: linux
  200. compiler: gcc
  201. env: CONFIG=DefaultDebug LINUX=ubuntu-16.10 COMPILER=gcc-6
  202. install:
  203. travis/install_linux.sh
  204. script:
  205. travis/build.sh Build3
  206. before_cache:
  207. docker cp storm:/storm/. .
  208. after_failure:
  209. - find build -iname '*err*.log' -type f -print -exec cat {} \;
  210. - stage: Build (3rd run)
  211. os: linux
  212. compiler: gcc
  213. env: CONFIG=DefaultRelease LINUX=ubuntu-16.10 COMPILER=gcc-6
  214. install:
  215. travis/install_linux.sh
  216. script:
  217. travis/build.sh Build3
  218. before_cache:
  219. docker cp storm:/storm/. .
  220. after_failure:
  221. - find build -iname '*err*.log' -type f -print -exec cat {} \;
  222. # debian-9
  223. - stage: Build (3rd run)
  224. os: linux
  225. compiler: gcc
  226. env: CONFIG=DefaultDebug LINUX=debian-9 COMPILER=gcc-6
  227. install:
  228. travis/install_linux.sh
  229. script:
  230. travis/build.sh Build3
  231. before_cache:
  232. docker cp storm:/storm/. .
  233. after_failure:
  234. - find build -iname '*err*.log' -type f -print -exec cat {} \;
  235. - stage: Build (3rd run)
  236. os: linux
  237. compiler: gcc
  238. env: CONFIG=DefaultRelease LINUX=debian-9 COMPILER=gcc-6
  239. install:
  240. travis/install_linux.sh
  241. script:
  242. travis/build.sh Build3
  243. before_cache:
  244. docker cp storm:/storm/. .
  245. after_failure:
  246. - find build -iname '*err*.log' -type f -print -exec cat {} \;
  247. ###
  248. # Stage: Build (4th run)
  249. ###
  250. # osx
  251. - stage: Build (4th run)
  252. os: osx
  253. compiler: clang
  254. env: CONFIG=DefaultDebug COMPILER=clang-4.0 STL=libc++
  255. install:
  256. travis/install_osx.sh
  257. script:
  258. travis/build.sh Build4
  259. after_failure:
  260. - find build -iname '*err*.log' -type f -print -exec cat {} \;
  261. - stage: Build (4th run)
  262. os: osx
  263. compiler: clang
  264. env: CONFIG=DefaultRelease COMPILER=clang-4.0 STL=libc++
  265. install:
  266. travis/install_osx.sh
  267. script:
  268. travis/build.sh Build4
  269. after_failure:
  270. - find build -iname '*err*.log' -type f -print -exec cat {} \;
  271. # ubuntu-16.10
  272. - stage: Build (4th run)
  273. os: linux
  274. compiler: gcc
  275. env: CONFIG=DefaultDebug LINUX=ubuntu-16.10 COMPILER=gcc-6
  276. install:
  277. travis/install_linux.sh
  278. script:
  279. travis/build.sh Build4
  280. before_cache:
  281. docker cp storm:/storm/. .
  282. after_failure:
  283. - find build -iname '*err*.log' -type f -print -exec cat {} \;
  284. - stage: Build (4th run)
  285. os: linux
  286. compiler: gcc
  287. env: CONFIG=DefaultRelease LINUX=ubuntu-16.10 COMPILER=gcc-6
  288. install:
  289. travis/install_linux.sh
  290. script:
  291. travis/build.sh Build4
  292. before_cache:
  293. docker cp storm:/storm/. .
  294. after_failure:
  295. - find build -iname '*err*.log' -type f -print -exec cat {} \;
  296. # debian-9
  297. - stage: Build (4th run)
  298. os: linux
  299. compiler: gcc
  300. env: CONFIG=DefaultDebug LINUX=debian-9 COMPILER=gcc-6
  301. install:
  302. travis/install_linux.sh
  303. script:
  304. travis/build.sh Build4
  305. before_cache:
  306. docker cp storm:/storm/. .
  307. after_failure:
  308. - find build -iname '*err*.log' -type f -print -exec cat {} \;
  309. - stage: Build (4th run)
  310. os: linux
  311. compiler: gcc
  312. env: CONFIG=DefaultRelease LINUX=debian-9 COMPILER=gcc-6
  313. install:
  314. travis/install_linux.sh
  315. script:
  316. travis/build.sh Build4
  317. before_cache:
  318. docker cp storm:/storm/. .
  319. after_failure:
  320. - find build -iname '*err*.log' -type f -print -exec cat {} \;
  321. ###
  322. # Stage: Test all
  323. ###
  324. # osx
  325. - stage: Test all
  326. os: osx
  327. compiler: clang
  328. env: CONFIG=DefaultDebug COMPILER=clang-4.0 STL=libc++
  329. install:
  330. travis/install_osx.sh
  331. script:
  332. travis/build.sh TestAll
  333. after_failure:
  334. - find build -iname '*err*.log' -type f -print -exec cat {} \;
  335. - stage: Test all
  336. os: osx
  337. compiler: clang
  338. env: CONFIG=DefaultRelease COMPILER=clang-4.0 STL=libc++
  339. install:
  340. travis/install_osx.sh
  341. script:
  342. travis/build.sh TestAll
  343. after_failure:
  344. - find build -iname '*err*.log' -type f -print -exec cat {} \;
  345. # ubuntu-16.10
  346. - stage: Test all
  347. os: linux
  348. compiler: gcc
  349. env: CONFIG=DefaultDebug LINUX=ubuntu-16.10 COMPILER=gcc-6
  350. install:
  351. travis/install_linux.sh
  352. script:
  353. travis/build.sh TestAll
  354. before_cache:
  355. docker cp storm:/storm/. .
  356. after_failure:
  357. - find build -iname '*err*.log' -type f -print -exec cat {} \;
  358. - stage: Test all
  359. os: linux
  360. compiler: gcc
  361. env: CONFIG=DefaultRelease LINUX=ubuntu-16.10 COMPILER=gcc-6
  362. install:
  363. travis/install_linux.sh
  364. script:
  365. travis/build.sh TestAll
  366. before_cache:
  367. docker cp storm:/storm/. .
  368. after_failure:
  369. - find build -iname '*err*.log' -type f -print -exec cat {} \;
  370. # debian-9
  371. - stage: Test all
  372. os: linux
  373. compiler: gcc
  374. env: CONFIG=DefaultDebug LINUX=debian-9 COMPILER=gcc-6
  375. install:
  376. travis/install_linux.sh
  377. script:
  378. travis/build.sh TestAll
  379. before_cache:
  380. docker cp storm:/storm/. .
  381. after_failure:
  382. - find build -iname '*err*.log' -type f -print -exec cat {} \;
  383. - stage: Test all
  384. os: linux
  385. compiler: gcc
  386. env: CONFIG=DefaultRelease LINUX=debian-9 COMPILER=gcc-6
  387. install:
  388. travis/install_linux.sh
  389. script:
  390. travis/build.sh TestAll
  391. before_cache:
  392. docker cp storm:/storm/. .
  393. after_failure:
  394. - find build -iname '*err*.log' -type f -print -exec cat {} \;