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.

349 lines
13 KiB

8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
  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 dependencies
  27. ###
  28. # ubuntu-16.10
  29. - stage: Build dependencies
  30. os: linux
  31. compiler: gcc
  32. env: BUILD=DefaultDebug COMPILER=gcc-6 LINUX=ubuntu-16.10
  33. install: export OS=linux; export COMPILER='gcc-6'; export LINUX='ubuntu-16.10';
  34. travis/install_linux.sh
  35. script: export OS=linux; export COMPILER='gcc-6'; export LINUX='ubuntu-16.10';
  36. travis/postsubmit.sh DefaultDebug BuildDep
  37. before_cache:
  38. docker cp storm:/storm/. .
  39. - stage: Build dependencies
  40. os: linux
  41. compiler: gcc
  42. env: BUILD=DefaultRelease COMPILER=gcc-6 LINUX=ubuntu-16.10
  43. install: export OS=linux; export COMPILER='gcc-6'; export LINUX='ubuntu-16.10';
  44. travis/install_linux.sh
  45. script: export OS=linux; export COMPILER='gcc-6'; export LINUX='ubuntu-16.10';
  46. travis/postsubmit.sh DefaultRelease BuildDep
  47. before_cache:
  48. docker cp storm:/storm/. .
  49. # debian-9
  50. - stage: Build dependencies
  51. os: linux
  52. compiler: gcc
  53. env: BUILD=DefaultDebug COMPILER=gcc-6 LINUX=debian-9
  54. install: export OS=linux; export COMPILER='gcc-6'; export LINUX='debian-9';
  55. travis/install_linux.sh
  56. script: export OS=linux; export COMPILER='gcc-6'; export LINUX='debian-9';
  57. travis/postsubmit.sh DefaultDebug BuildDep
  58. before_cache:
  59. docker cp storm:/storm/. .
  60. - stage: Build dependencies
  61. os: linux
  62. compiler: gcc
  63. env: BUILD=DefaultRelease COMPILER=gcc-6 LINUX=debian-9
  64. install: export OS=linux; export COMPILER='gcc-6'; export LINUX='debian-9';
  65. travis/install_linux.sh
  66. script: export OS=linux; export COMPILER='gcc-6'; export LINUX='debian-9';
  67. travis/postsubmit.sh DefaultRelease BuildDep
  68. before_cache:
  69. docker cp storm:/storm/. .
  70. # osx
  71. - stage: Build dependencies
  72. os: osx
  73. compiler: clang
  74. env: BUILD=DefaultDebug COMPILER=clang-4.0 STL=libc++
  75. install: export OS=osx; export COMPILER='clang-4.0'; export STL='libc++';
  76. travis/install_osx.sh
  77. script: export OS=osx; export COMPILER='clang-4.0'; export STL='libc++';
  78. travis/postsubmit.sh DefaultDebug BuildDep
  79. - stage: Build dependencies
  80. os: osx
  81. compiler: clang
  82. env: BUILD=DefaultRelease COMPILER=clang-4.0 STL=libc++
  83. install: export OS=osx; export COMPILER='clang-4.0'; export STL='libc++';
  84. travis/install_osx.sh
  85. script: export OS=osx; export COMPILER='clang-4.0'; export STL='libc++';
  86. travis/postsubmit.sh DefaultRelease BuildDep
  87. ###
  88. # Stage: Build library (1st run)
  89. ###
  90. # ubuntu-16.10
  91. - stage: Build library (1st run)
  92. os: linux
  93. compiler: gcc
  94. env: BUILD=DefaultDebug COMPILER=gcc-6 LINUX=ubuntu-16.10
  95. install: export OS=linux; export COMPILER='gcc-6'; export LINUX='ubuntu-16.10';
  96. travis/install_linux.sh
  97. script: export OS=linux; export COMPILER='gcc-6'; export LINUX='ubuntu-16.10';
  98. travis/postsubmit.sh DefaultDebug BuildLib1
  99. before_cache:
  100. docker cp storm:/storm/. .
  101. - stage: Build library (1st run)
  102. os: linux
  103. compiler: gcc
  104. env: BUILD=DefaultRelease COMPILER=gcc-6 LINUX=ubuntu-16.10
  105. install: export OS=linux; export COMPILER='gcc-6'; export LINUX='ubuntu-16.10';
  106. travis/install_linux.sh
  107. script: export OS=linux; export COMPILER='gcc-6'; export LINUX='ubuntu-16.10';
  108. travis/postsubmit.sh DefaultRelease BuildLib1
  109. before_cache:
  110. docker cp storm:/storm/. .
  111. # debian-9
  112. - stage: Build library (1st run)
  113. os: linux
  114. compiler: gcc
  115. env: BUILD=DefaultDebug COMPILER=gcc-6 LINUX=debian-9
  116. install: export OS=linux; export COMPILER='gcc-6'; export LINUX='debian-9';
  117. travis/install_linux.sh
  118. script: export OS=linux; export COMPILER='gcc-6'; export LINUX='debian-9';
  119. travis/postsubmit.sh DefaultDebug BuildLib1
  120. before_cache:
  121. docker cp storm:/storm/. .
  122. - stage: Build library (1st run)
  123. os: linux
  124. compiler: gcc
  125. env: BUILD=DefaultRelease COMPILER=gcc-6 LINUX=debian-9
  126. install: export OS=linux; export COMPILER='gcc-6'; export LINUX='debian-9';
  127. travis/install_linux.sh
  128. script: export OS=linux; export COMPILER='gcc-6'; export LINUX='debian-9';
  129. travis/postsubmit.sh DefaultRelease BuildLib1
  130. before_cache:
  131. docker cp storm:/storm/. .
  132. # osx
  133. - stage: Build library (1st run)
  134. os: osx
  135. compiler: clang
  136. env: BUILD=DefaultDebug COMPILER=clang-4.0 STL=libc++
  137. install: export OS=osx; export COMPILER='clang-4.0'; export STL='libc++';
  138. travis/install_osx.sh
  139. script: export OS=osx; export COMPILER='clang-4.0'; export STL='libc++';
  140. travis/postsubmit.sh DefaultDebug BuildLib1
  141. - stage: Build library (1st run)
  142. os: osx
  143. compiler: clang
  144. env: BUILD=DefaultRelease COMPILER=clang-4.0 STL=libc++
  145. install: export OS=osx; export COMPILER='clang-4.0'; export STL='libc++';
  146. travis/install_osx.sh
  147. script: export OS=osx; export COMPILER='clang-4.0'; export STL='libc++';
  148. travis/postsubmit.sh DefaultRelease BuildLib1
  149. ###
  150. # Stage: Build library (2nd run)
  151. ###
  152. # ubuntu-16.10
  153. - stage: Build library (2nd run)
  154. os: linux
  155. compiler: gcc
  156. env: BUILD=DefaultDebug COMPILER=gcc-6 LINUX=ubuntu-16.10
  157. install: export OS=linux; export COMPILER='gcc-6'; export LINUX='ubuntu-16.10';
  158. travis/install_linux.sh
  159. script: export OS=linux; export COMPILER='gcc-6'; export LINUX='ubuntu-16.10';
  160. travis/postsubmit.sh DefaultDebug BuildLib
  161. before_cache:
  162. docker cp storm:/storm/. .
  163. - stage: Build library (2nd run)
  164. os: linux
  165. compiler: gcc
  166. env: BUILD=DefaultRelease COMPILER=gcc-6 LINUX=ubuntu-16.10
  167. install: export OS=linux; export COMPILER='gcc-6'; export LINUX='ubuntu-16.10';
  168. travis/install_linux.sh
  169. script: export OS=linux; export COMPILER='gcc-6'; export LINUX='ubuntu-16.10';
  170. travis/postsubmit.sh DefaultRelease BuildLib
  171. before_cache:
  172. docker cp storm:/storm/. .
  173. # debian-9
  174. - stage: Build library (2nd run)
  175. os: linux
  176. compiler: gcc
  177. env: BUILD=DefaultDebug COMPILER=gcc-6 LINUX=debian-9
  178. install: export OS=linux; export COMPILER='gcc-6'; export LINUX='debian-9';
  179. travis/install_linux.sh
  180. script: export OS=linux; export COMPILER='gcc-6'; export LINUX='debian-9';
  181. travis/postsubmit.sh DefaultDebug BuildLib
  182. before_cache:
  183. docker cp storm:/storm/. .
  184. - stage: Build library (2nd run)
  185. os: linux
  186. compiler: gcc
  187. env: BUILD=DefaultRelease COMPILER=gcc-6 LINUX=debian-9
  188. install: export OS=linux; export COMPILER='gcc-6'; export LINUX='debian-9';
  189. travis/install_linux.sh
  190. script: export OS=linux; export COMPILER='gcc-6'; export LINUX='debian-9';
  191. travis/postsubmit.sh DefaultRelease BuildLib
  192. before_cache:
  193. docker cp storm:/storm/. .
  194. # osx
  195. - stage: Build library (2nd run)
  196. os: osx
  197. compiler: clang
  198. env: BUILD=DefaultDebug COMPILER=clang-4.0 STL=libc++
  199. install: export OS=osx; export COMPILER='clang-4.0'; export STL='libc++';
  200. travis/install_osx.sh
  201. script: export OS=osx; export COMPILER='clang-4.0'; export STL='libc++';
  202. travis/postsubmit.sh DefaultDebug BuildLib
  203. - stage: Build library (2nd run)
  204. os: osx
  205. compiler: clang
  206. env: BUILD=DefaultRelease COMPILER=clang-4.0 STL=libc++
  207. install: export OS=osx; export COMPILER='clang-4.0'; export STL='libc++';
  208. travis/install_osx.sh
  209. script: export OS=osx; export COMPILER='clang-4.0'; export STL='libc++';
  210. travis/postsubmit.sh DefaultRelease BuildLib
  211. ###
  212. # Stage: Build all
  213. ###
  214. # ubuntu-16.10
  215. - stage: Build all
  216. os: linux
  217. compiler: gcc
  218. env: BUILD=DefaultDebug COMPILER=gcc-6 LINUX=ubuntu-16.10
  219. install: export OS=linux; export COMPILER='gcc-6'; export LINUX='ubuntu-16.10';
  220. travis/install_linux.sh
  221. script: export OS=linux; export COMPILER='gcc-6'; export LINUX='ubuntu-16.10';
  222. travis/postsubmit.sh DefaultDebug BuildAll
  223. before_cache:
  224. docker cp storm:/storm/. .
  225. - stage: Build all
  226. os: linux
  227. compiler: gcc
  228. env: BUILD=DefaultRelease COMPILER=gcc-6 LINUX=ubuntu-16.10
  229. install: export OS=linux; export COMPILER='gcc-6'; export LINUX='ubuntu-16.10';
  230. travis/install_linux.sh
  231. script: export OS=linux; export COMPILER='gcc-6'; export LINUX='ubuntu-16.10';
  232. travis/postsubmit.sh DefaultRelease BuildAll
  233. before_cache:
  234. docker cp storm:/storm/. .
  235. # debian-9
  236. - stage: Build all
  237. os: linux
  238. compiler: gcc
  239. env: BUILD=DefaultDebug COMPILER=gcc-6 LINUX=debian-9
  240. install: export OS=linux; export COMPILER='gcc-6'; export LINUX='debian-9';
  241. travis/install_linux.sh
  242. script: export OS=linux; export COMPILER='gcc-6'; export LINUX='debian-9';
  243. travis/postsubmit.sh DefaultDebug BuildAll
  244. before_cache:
  245. docker cp storm:/storm/. .
  246. - stage: Build all
  247. os: linux
  248. compiler: gcc
  249. env: BUILD=DefaultRelease COMPILER=gcc-6 LINUX=debian-9
  250. install: export OS=linux; export COMPILER='gcc-6'; export LINUX='debian-9';
  251. travis/install_linux.sh
  252. script: export OS=linux; export COMPILER='gcc-6'; export LINUX='debian-9';
  253. travis/postsubmit.sh DefaultRelease BuildAll
  254. before_cache:
  255. docker cp storm:/storm/. .
  256. # osx
  257. - stage: Build all
  258. os: osx
  259. compiler: clang
  260. env: BUILD=DefaultDebug COMPILER=clang-4.0 STL=libc++
  261. install: export OS=osx; export COMPILER='clang-4.0'; export STL='libc++';
  262. travis/install_osx.sh
  263. script: export OS=osx; export COMPILER='clang-4.0'; export STL='libc++';
  264. travis/postsubmit.sh DefaultDebug BuildAll
  265. - stage: Build all
  266. os: osx
  267. compiler: clang
  268. env: BUILD=DefaultRelease COMPILER=clang-4.0 STL=libc++
  269. install: export OS=osx; export COMPILER='clang-4.0'; export STL='libc++';
  270. travis/install_osx.sh
  271. script: export OS=osx; export COMPILER='clang-4.0'; export STL='libc++';
  272. travis/postsubmit.sh DefaultRelease BuildAll
  273. ###
  274. # Stage: Test all
  275. ###
  276. # ubuntu-16.10
  277. - stage: Test all
  278. os: linux
  279. compiler: gcc
  280. env: BUILD=DefaultDebug COMPILER=gcc-6 LINUX=ubuntu-16.10
  281. install: export OS=linux; export COMPILER='gcc-6'; export LINUX='ubuntu-16.10';
  282. travis/install_linux.sh
  283. script: export OS=linux; export COMPILER='gcc-6'; export LINUX='ubuntu-16.10';
  284. travis/postsubmit.sh DefaultDebug TestAll
  285. before_cache:
  286. docker cp storm:/storm/. .
  287. - stage: Test all
  288. os: linux
  289. compiler: gcc
  290. env: BUILD=DefaultRelease COMPILER=gcc-6 LINUX=ubuntu-16.10
  291. install: export OS=linux; export COMPILER='gcc-6'; export LINUX='ubuntu-16.10';
  292. travis/install_linux.sh
  293. script: export OS=linux; export COMPILER='gcc-6'; export LINUX='ubuntu-16.10';
  294. travis/postsubmit.sh DefaultRelease TestAll
  295. before_cache:
  296. docker cp storm:/storm/. .
  297. # debian-9
  298. - stage: Test all
  299. os: linux
  300. compiler: gcc
  301. env: BUILD=DefaultDebug COMPILER=gcc-6 LINUX=debian-9
  302. install: export OS=linux; export COMPILER='gcc-6'; export LINUX='debian-9';
  303. travis/install_linux.sh
  304. script: export OS=linux; export COMPILER='gcc-6'; export LINUX='debian-9';
  305. travis/postsubmit.sh DefaultDebug TestAll
  306. before_cache:
  307. docker cp storm:/storm/. .
  308. - stage: Test all
  309. os: linux
  310. compiler: gcc
  311. env: BUILD=DefaultRelease COMPILER=gcc-6 LINUX=debian-9
  312. install: export OS=linux; export COMPILER='gcc-6'; export LINUX='debian-9';
  313. travis/install_linux.sh
  314. script: export OS=linux; export COMPILER='gcc-6'; export LINUX='debian-9';
  315. travis/postsubmit.sh DefaultRelease TestAll
  316. before_cache:
  317. docker cp storm:/storm/. .
  318. # osx
  319. - stage: Test all
  320. os: osx
  321. compiler: clang
  322. env: BUILD=DefaultDebug COMPILER=clang-4.0 STL=libc++
  323. install: export OS=osx; export COMPILER='clang-4.0'; export STL='libc++';
  324. travis/install_osx.sh
  325. script: export OS=osx; export COMPILER='clang-4.0'; export STL='libc++';
  326. travis/postsubmit.sh DefaultDebug TestAll
  327. - stage: Test all
  328. os: osx
  329. compiler: clang
  330. env: BUILD=DefaultRelease COMPILER=clang-4.0 STL=libc++
  331. install: export OS=osx; export COMPILER='clang-4.0'; export STL='libc++';
  332. travis/install_osx.sh
  333. script: export OS=osx; export COMPILER='clang-4.0'; export STL='libc++';
  334. travis/postsubmit.sh DefaultRelease TestAll