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.

379 lines
11 KiB

  1. #
  2. # General config
  3. #
  4. branches:
  5. only:
  6. - master
  7. - stable
  8. sudo: required
  9. dist: trusty
  10. language: cpp
  11. # Enable caching
  12. cache:
  13. timeout: 1000
  14. directories:
  15. - build
  16. - travis/mtime_cache
  17. # Enable docker support
  18. services:
  19. - docker
  20. notifications:
  21. email:
  22. on_failure: always
  23. on_success: change
  24. recipients:
  25. secure: "Q9CW/PtyWkZwExDrfFFb9n1STGYsRfI6awv1bZHcGwfrDvhpXoMCuF8CwviIfilm7fFJJEoKizTtdRpY0HrOnY/8KY111xrtcFYosxdndv7xbESodIxQOUoIEFCO0mCNHwWYisoi3dAA7H3Yn661EsxluwHjzX5vY0xSbw0n229hlsFz092HwGLSU33zHl7eXpQk+BOFmBTRGlOq9obtDZ17zbHz1oXFZntHK/JDUIYP0b0uq8NvE2jM6CIVdcuSwmIkOhZJoO2L3Py3rBbPci+L2PSK4Smv2UjCPF8KusnOaFIyDB3LcNM9Jqq5ssJMrK/KaO6BiuYrOZXYWZ7KEg3Y/naC8HjOH1dzty+P7oW46sb9F03pTsufqD4R7wcK+9wROTztO6aJPDG/IPH7EWgrBTxqlOkVRwi2eYuQouZpZUW6EMClKbMHMIxCH2S8aOk/r1w2cNwmPEcunnP0nl413x/ByHr4fTPFykPj8pQxIsllYjpdWBRQfDOauKWGzk6LcrFW0qpWP+/aJ2vYu/IoZQMG5lMHbp6Y1Lg09pYm7Q983v3b7D+JvXhOXMyGq91HyPahA2wwKoG1GA4uoZ2I95/IFYNiKkelDd3WTBoFLNF9YFoEJNdCywm1fO2WY4WkyEFBuQcgDA+YpFMJJMxjTbivYk9jvHk2gji//2w="
  26. #
  27. # Configurations
  28. #
  29. jobs:
  30. include:
  31. ###
  32. # Stage: Build Carl
  33. ###
  34. # ubuntu-17.10 - DefaultDebugTravis
  35. - stage: Build Carl
  36. os: linux
  37. compiler: gcc
  38. env: CONFIG=DefaultDebugTravis LINUX=ubuntu-17.10 COMPILER=gcc
  39. install:
  40. - travis/install_linux.sh
  41. script:
  42. - travis/build_carl.sh
  43. after_success:
  44. - docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD";
  45. - docker commit carl movesrwth/carl:travis-debug;
  46. - docker push movesrwth/carl:travis-debug;
  47. # ubuntu-17.10 - DefaultReleaseTravis
  48. - stage: Build Carl
  49. os: linux
  50. compiler: gcc
  51. env: CONFIG=DefaultReleaseTravis LINUX=ubuntu-17.10 COMPILER=gcc
  52. install:
  53. - travis/install_linux.sh
  54. script:
  55. - travis/build_carl.sh
  56. after_success:
  57. - docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD";
  58. - docker commit carl movesrwth/carl:travis;
  59. - docker push movesrwth/carl:travis;
  60. ###
  61. # Stage: Build (1st run)
  62. ###
  63. # debian-9 - DefaultDebug
  64. - stage: Build (1st run)
  65. os: linux
  66. compiler: gcc
  67. env: CONFIG=DefaultDebug LINUX=debian-9 COMPILER=gcc
  68. install:
  69. - rm -rf build
  70. - travis/install_linux.sh
  71. script:
  72. - travis/build.sh Build1
  73. before_cache:
  74. - docker cp storm:/opt/storm/. .
  75. after_failure:
  76. - find build -iname '*err*.log' -type f -print -exec cat {} \;
  77. # debian-9 - DefaultRelease
  78. - stage: Build (1st run)
  79. os: linux
  80. compiler: gcc
  81. env: CONFIG=DefaultRelease LINUX=debian-9 COMPILER=gcc
  82. install:
  83. - rm -rf build
  84. - travis/install_linux.sh
  85. script:
  86. - travis/build.sh Build1
  87. before_cache:
  88. - docker cp storm:/opt/storm/. .
  89. after_failure:
  90. - find build -iname '*err*.log' -type f -print -exec cat {} \;
  91. # ubuntu-17.10 - DefaultDebugTravis
  92. - stage: Build (1st run)
  93. os: linux
  94. compiler: gcc
  95. env: CONFIG=DefaultDebugTravis LINUX=ubuntu-17.10 COMPILER=gcc
  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:/opt/storm/. .
  103. after_failure:
  104. - find build -iname '*err*.log' -type f -print -exec cat {} \;
  105. # ubuntu-17.10 - DefaultReleaseTravis
  106. - stage: Build (1st run)
  107. os: linux
  108. compiler: gcc
  109. env: CONFIG=DefaultReleaseTravis LINUX=ubuntu-17.10 COMPILER=gcc
  110. install:
  111. - rm -rf build
  112. - travis/install_linux.sh
  113. script:
  114. - travis/build.sh Build1
  115. before_cache:
  116. - docker cp storm:/opt/storm/. .
  117. after_failure:
  118. - find build -iname '*err*.log' -type f -print -exec cat {} \;
  119. ###
  120. # Stage: Build (2nd run)
  121. ###
  122. # debian-9 - DefaultDebug
  123. - stage: Build (2nd run)
  124. os: linux
  125. compiler: gcc
  126. env: CONFIG=DefaultDebug LINUX=debian-9 COMPILER=gcc
  127. install:
  128. - travis/install_linux.sh
  129. script:
  130. - travis/build.sh Build2
  131. before_cache:
  132. - docker cp storm:/opt/storm/. .
  133. after_failure:
  134. - find build -iname '*err*.log' -type f -print -exec cat {} \;
  135. # debian-9 - DefaultRelease
  136. - stage: Build (2nd run)
  137. os: linux
  138. compiler: gcc
  139. env: CONFIG=DefaultRelease LINUX=debian-9 COMPILER=gcc
  140. install:
  141. - travis/install_linux.sh
  142. script:
  143. - travis/build.sh Build2
  144. before_cache:
  145. - docker cp storm:/opt/storm/. .
  146. after_failure:
  147. - find build -iname '*err*.log' -type f -print -exec cat {} \;
  148. # ubuntu-17.10 - DefaultDebugTravis
  149. - stage: Build (2nd run)
  150. os: linux
  151. compiler: gcc
  152. env: CONFIG=DefaultDebugTravis LINUX=ubuntu-17.10 COMPILER=gcc
  153. install:
  154. - travis/install_linux.sh
  155. script:
  156. - travis/build.sh Build2
  157. before_cache:
  158. - docker cp storm:/opt/storm/. .
  159. after_failure:
  160. - find build -iname '*err*.log' -type f -print -exec cat {} \;
  161. # ubuntu-17.10 - DefaultReleaseTravis
  162. - stage: Build (2nd run)
  163. os: linux
  164. compiler: gcc
  165. env: CONFIG=DefaultReleaseTravis LINUX=ubuntu-17.10 COMPILER=gcc
  166. install:
  167. - travis/install_linux.sh
  168. script:
  169. - travis/build.sh Build2
  170. before_cache:
  171. - docker cp storm:/opt/storm/. .
  172. after_failure:
  173. - find build -iname '*err*.log' -type f -print -exec cat {} \;
  174. ###
  175. # Stage: Build (3rd run)
  176. ###
  177. # debian-9 - DefaultDebug
  178. - stage: Build (3rd run)
  179. os: linux
  180. compiler: gcc
  181. env: CONFIG=DefaultDebug LINUX=debian-9 COMPILER=gcc
  182. install:
  183. - travis/install_linux.sh
  184. script:
  185. - travis/build.sh Build3
  186. before_cache:
  187. - docker cp storm:/opt/storm/. .
  188. after_failure:
  189. - find build -iname '*err*.log' -type f -print -exec cat {} \;
  190. # debian-9 - DefaultRelease
  191. - stage: Build (3rd run)
  192. os: linux
  193. compiler: gcc
  194. env: CONFIG=DefaultRelease LINUX=debian-9 COMPILER=gcc
  195. install:
  196. - travis/install_linux.sh
  197. script:
  198. - travis/build.sh Build3
  199. before_cache:
  200. - docker cp storm:/opt/storm/. .
  201. after_failure:
  202. - find build -iname '*err*.log' -type f -print -exec cat {} \;
  203. # ubuntu-17.10 - DefaultDebugTravis
  204. - stage: Build (3rd run)
  205. os: linux
  206. compiler: gcc
  207. env: CONFIG=DefaultDebugTravis LINUX=ubuntu-17.10 COMPILER=gcc
  208. install:
  209. - travis/install_linux.sh
  210. script:
  211. - travis/build.sh Build3
  212. before_cache:
  213. - docker cp storm:/opt/storm/. .
  214. after_failure:
  215. - find build -iname '*err*.log' -type f -print -exec cat {} \;
  216. # ubuntu-17.10 - DefaultReleaseTravis
  217. - stage: Build (3rd run)
  218. os: linux
  219. compiler: gcc
  220. env: CONFIG=DefaultReleaseTravis LINUX=ubuntu-17.10 COMPILER=gcc
  221. install:
  222. - travis/install_linux.sh
  223. script:
  224. - travis/build.sh Build3
  225. before_cache:
  226. - docker cp storm:/opt/storm/. .
  227. after_failure:
  228. - find build -iname '*err*.log' -type f -print -exec cat {} \;
  229. ###
  230. # Stage: Build (4th run)
  231. ###
  232. # debian-9 - DefaultDebug
  233. - stage: Build (4th run)
  234. os: linux
  235. compiler: gcc
  236. env: CONFIG=DefaultDebug LINUX=debian-9 COMPILER=gcc
  237. install:
  238. - travis/install_linux.sh
  239. script:
  240. - travis/build.sh BuildLast
  241. before_cache:
  242. - docker cp storm:/opt/storm/. .
  243. after_failure:
  244. - find build -iname '*err*.log' -type f -print -exec cat {} \;
  245. # debian-9 - DefaultRelease
  246. - stage: Build (4th run)
  247. os: linux
  248. compiler: gcc
  249. env: CONFIG=DefaultRelease LINUX=debian-9 COMPILER=gcc
  250. install:
  251. - travis/install_linux.sh
  252. script:
  253. - travis/build.sh BuildLast
  254. before_cache:
  255. - docker cp storm:/opt/storm/. .
  256. after_failure:
  257. - find build -iname '*err*.log' -type f -print -exec cat {} \;
  258. # ubuntu-17.10 - DefaultDebugTravis
  259. - stage: Build (4th run)
  260. os: linux
  261. compiler: gcc
  262. env: CONFIG=DefaultDebugTravis LINUX=ubuntu-17.10 COMPILER=gcc
  263. install:
  264. - travis/install_linux.sh
  265. script:
  266. - travis/build.sh BuildLast
  267. before_cache:
  268. - docker cp storm:/opt/storm/. .
  269. after_failure:
  270. - find build -iname '*err*.log' -type f -print -exec cat {} \;
  271. # ubuntu-17.10 - DefaultReleaseTravis
  272. - stage: Build (4th run)
  273. os: linux
  274. compiler: gcc
  275. env: CONFIG=DefaultReleaseTravis LINUX=ubuntu-17.10 COMPILER=gcc
  276. install:
  277. - travis/install_linux.sh
  278. script:
  279. - travis/build.sh BuildLast
  280. before_cache:
  281. - docker cp storm:/opt/storm/. .
  282. after_failure:
  283. - find build -iname '*err*.log' -type f -print -exec cat {} \;
  284. ###
  285. # Stage: Test all
  286. ###
  287. # debian-9 - DefaultDebug
  288. - stage: Test all
  289. os: linux
  290. compiler: gcc
  291. env: CONFIG=DefaultDebug LINUX=debian-9 COMPILER=gcc
  292. install:
  293. - travis/install_linux.sh
  294. script:
  295. - travis/build.sh TestAll
  296. before_cache:
  297. - docker cp storm:/opt/storm/. .
  298. after_failure:
  299. - find build -iname '*err*.log' -type f -print -exec cat {} \;
  300. # debian-9 - DefaultRelease
  301. - stage: Test all
  302. os: linux
  303. compiler: gcc
  304. env: CONFIG=DefaultRelease LINUX=debian-9 COMPILER=gcc
  305. install:
  306. - travis/install_linux.sh
  307. script:
  308. - travis/build.sh TestAll
  309. before_cache:
  310. - docker cp storm:/opt/storm/. .
  311. after_failure:
  312. - find build -iname '*err*.log' -type f -print -exec cat {} \;
  313. # ubuntu-17.10 - DefaultDebugTravis
  314. - stage: Test all
  315. os: linux
  316. compiler: gcc
  317. env: CONFIG=DefaultDebugTravis LINUX=ubuntu-17.10 COMPILER=gcc
  318. install:
  319. - travis/install_linux.sh
  320. script:
  321. - travis/build.sh TestAll
  322. before_cache:
  323. - docker cp storm:/opt/storm/. .
  324. after_failure:
  325. - find build -iname '*err*.log' -type f -print -exec cat {} \;
  326. after_success:
  327. - docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD";
  328. - docker commit storm movesrwth/storm:travis-debug;
  329. - docker push movesrwth/storm:travis-debug;
  330. # ubuntu-17.10 - DefaultReleaseTravis
  331. - stage: Test all
  332. os: linux
  333. compiler: gcc
  334. env: CONFIG=DefaultReleaseTravis LINUX=ubuntu-17.10 COMPILER=gcc
  335. install:
  336. - travis/install_linux.sh
  337. script:
  338. - travis/build.sh TestAll
  339. before_cache:
  340. - docker cp storm:/opt/storm/. .
  341. after_failure:
  342. - find build -iname '*err*.log' -type f -print -exec cat {} \;
  343. after_success:
  344. - docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD";
  345. - docker commit storm movesrwth/storm:travis;
  346. - docker push movesrwth/storm:travis;
  347. allow_failures:
  348. - stage: Build (1st run)
  349. os: linux
  350. env: CONFIG=DefaultReleaseTravis LINUX=ubuntu-17.10 COMPILER=gcc
  351. - stage: Build (2nd run)
  352. os: linux
  353. env: CONFIG=DefaultReleaseTravis LINUX=ubuntu-17.10 COMPILER=gcc
  354. - stage: Build (3rd run)
  355. os: linux
  356. env: CONFIG=DefaultReleaseTravis LINUX=ubuntu-17.10 COMPILER=gcc
  357. - stage: Build (4th run)
  358. os: linux
  359. env: CONFIG=DefaultReleaseTravis LINUX=ubuntu-17.10 COMPILER=gcc
  360. - stage: Test all
  361. os: linux
  362. env: CONFIG=DefaultReleaseTravis LINUX=ubuntu-17.10 COMPILER=gcc