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.

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