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.

286 lines
9.9 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
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. - src/storm/utility/storm-version.cpp
  17. # Enable docker support
  18. services:
  19. - docker
  20. sudo: required
  21. #
  22. # Configurations
  23. #
  24. jobs:
  25. include:
  26. ###
  27. # Stage: ('Build dependencies', 'BuildDep')
  28. ###
  29. # ubuntu-16.10
  30. - stage: Build dependencies
  31. os: linux
  32. compiler: gcc
  33. env: BUILD=DefaultDebug COMPILER=gcc-6 LINUX=ubuntu-16.10
  34. install: export OS=linux; export COMPILER='gcc-6'; export LINUX='ubuntu-16.10';
  35. travis/install_linux.sh
  36. script: export OS=linux; export COMPILER='gcc-6'; export LINUX='ubuntu-16.10';
  37. travis/postsubmit.sh DefaultDebug BuildDep
  38. before_cache:
  39. docker cp storm:/storm/. .
  40. - stage: Build dependencies
  41. os: linux
  42. compiler: gcc
  43. env: BUILD=DefaultRelease COMPILER=gcc-6 LINUX=ubuntu-16.10
  44. install: export OS=linux; export COMPILER='gcc-6'; export LINUX='ubuntu-16.10';
  45. travis/install_linux.sh
  46. script: export OS=linux; export COMPILER='gcc-6'; export LINUX='ubuntu-16.10';
  47. travis/postsubmit.sh DefaultRelease BuildDep
  48. before_cache:
  49. docker cp storm:/storm/. .
  50. # debian-9
  51. - stage: Build dependencies
  52. os: linux
  53. compiler: gcc
  54. env: BUILD=DefaultDebug COMPILER=gcc-6 LINUX=debian-9
  55. install: export OS=linux; export COMPILER='gcc-6'; export LINUX='debian-9';
  56. travis/install_linux.sh
  57. script: export OS=linux; export COMPILER='gcc-6'; export LINUX='debian-9';
  58. travis/postsubmit.sh DefaultDebug BuildDep
  59. before_cache:
  60. docker cp storm:/storm/. .
  61. - stage: Build dependencies
  62. os: linux
  63. compiler: gcc
  64. env: BUILD=DefaultRelease COMPILER=gcc-6 LINUX=debian-9
  65. install: export OS=linux; export COMPILER='gcc-6'; export LINUX='debian-9';
  66. travis/install_linux.sh
  67. script: export OS=linux; export COMPILER='gcc-6'; export LINUX='debian-9';
  68. travis/postsubmit.sh DefaultRelease BuildDep
  69. before_cache:
  70. docker cp storm:/storm/. .
  71. # osx
  72. - stage: Build dependencies
  73. os: osx
  74. compiler: clang
  75. env: BUILD=DefaultDebug COMPILER=clang-4.0 STL=libc++
  76. install: export OS=osx; export COMPILER='clang-4.0'; export STL='libc++';
  77. travis/install_osx.sh
  78. script: export OS=osx; export COMPILER='clang-4.0'; export STL='libc++';
  79. travis/postsubmit.sh DefaultDebug BuildDep
  80. - stage: Build dependencies
  81. os: osx
  82. compiler: clang
  83. env: BUILD=DefaultRelease COMPILER=clang-4.0 STL=libc++
  84. install: export OS=osx; export COMPILER='clang-4.0'; export STL='libc++';
  85. travis/install_osx.sh
  86. script: export OS=osx; export COMPILER='clang-4.0'; export STL='libc++';
  87. travis/postsubmit.sh DefaultRelease BuildDep
  88. ###
  89. # Stage: ('Build library', 'BuildLib')
  90. ###
  91. # ubuntu-16.10
  92. - stage: Build library
  93. os: linux
  94. compiler: gcc
  95. env: BUILD=DefaultDebug COMPILER=gcc-6 LINUX=ubuntu-16.10
  96. install: export OS=linux; export COMPILER='gcc-6'; export LINUX='ubuntu-16.10';
  97. travis/install_linux.sh
  98. script: export OS=linux; export COMPILER='gcc-6'; export LINUX='ubuntu-16.10';
  99. travis/postsubmit.sh DefaultDebug BuildLib
  100. before_cache:
  101. docker cp storm:/storm/. .
  102. - stage: Build library
  103. os: linux
  104. compiler: gcc
  105. env: BUILD=DefaultRelease COMPILER=gcc-6 LINUX=ubuntu-16.10
  106. install: export OS=linux; export COMPILER='gcc-6'; export LINUX='ubuntu-16.10';
  107. travis/install_linux.sh
  108. script: export OS=linux; export COMPILER='gcc-6'; export LINUX='ubuntu-16.10';
  109. travis/postsubmit.sh DefaultRelease BuildLib
  110. before_cache:
  111. docker cp storm:/storm/. .
  112. # debian-9
  113. - stage: Build library
  114. os: linux
  115. compiler: gcc
  116. env: BUILD=DefaultDebug COMPILER=gcc-6 LINUX=debian-9
  117. install: export OS=linux; export COMPILER='gcc-6'; export LINUX='debian-9';
  118. travis/install_linux.sh
  119. script: export OS=linux; export COMPILER='gcc-6'; export LINUX='debian-9';
  120. travis/postsubmit.sh DefaultDebug BuildLib
  121. before_cache:
  122. docker cp storm:/storm/. .
  123. - stage: Build library
  124. os: linux
  125. compiler: gcc
  126. env: BUILD=DefaultRelease COMPILER=gcc-6 LINUX=debian-9
  127. install: export OS=linux; export COMPILER='gcc-6'; export LINUX='debian-9';
  128. travis/install_linux.sh
  129. script: export OS=linux; export COMPILER='gcc-6'; export LINUX='debian-9';
  130. travis/postsubmit.sh DefaultRelease BuildLib
  131. before_cache:
  132. docker cp storm:/storm/. .
  133. # osx
  134. - stage: Build library
  135. os: osx
  136. compiler: clang
  137. env: BUILD=DefaultDebug COMPILER=clang-4.0 STL=libc++
  138. install: export OS=osx; export COMPILER='clang-4.0'; export STL='libc++';
  139. travis/install_osx.sh
  140. script: export OS=osx; export COMPILER='clang-4.0'; export STL='libc++';
  141. travis/postsubmit.sh DefaultDebug BuildLib
  142. - stage: Build library
  143. os: osx
  144. compiler: clang
  145. env: BUILD=DefaultRelease COMPILER=clang-4.0 STL=libc++
  146. install: export OS=osx; export COMPILER='clang-4.0'; export STL='libc++';
  147. travis/install_osx.sh
  148. script: export OS=osx; export COMPILER='clang-4.0'; export STL='libc++';
  149. travis/postsubmit.sh DefaultRelease BuildLib
  150. ###
  151. # Stage: ('Build all', 'BuildAll')
  152. ###
  153. # ubuntu-16.10
  154. - stage: Build all
  155. os: linux
  156. compiler: gcc
  157. env: BUILD=DefaultDebug COMPILER=gcc-6 LINUX=ubuntu-16.10
  158. install: export OS=linux; export COMPILER='gcc-6'; export LINUX='ubuntu-16.10';
  159. travis/install_linux.sh
  160. script: export OS=linux; export COMPILER='gcc-6'; export LINUX='ubuntu-16.10';
  161. travis/postsubmit.sh DefaultDebug BuildAll
  162. before_cache:
  163. docker cp storm:/storm/. .
  164. - stage: Build all
  165. os: linux
  166. compiler: gcc
  167. env: BUILD=DefaultRelease COMPILER=gcc-6 LINUX=ubuntu-16.10
  168. install: export OS=linux; export COMPILER='gcc-6'; export LINUX='ubuntu-16.10';
  169. travis/install_linux.sh
  170. script: export OS=linux; export COMPILER='gcc-6'; export LINUX='ubuntu-16.10';
  171. travis/postsubmit.sh DefaultRelease BuildAll
  172. before_cache:
  173. docker cp storm:/storm/. .
  174. # debian-9
  175. - stage: Build all
  176. os: linux
  177. compiler: gcc
  178. env: BUILD=DefaultDebug COMPILER=gcc-6 LINUX=debian-9
  179. install: export OS=linux; export COMPILER='gcc-6'; export LINUX='debian-9';
  180. travis/install_linux.sh
  181. script: export OS=linux; export COMPILER='gcc-6'; export LINUX='debian-9';
  182. travis/postsubmit.sh DefaultDebug BuildAll
  183. before_cache:
  184. docker cp storm:/storm/. .
  185. - stage: Build all
  186. os: linux
  187. compiler: gcc
  188. env: BUILD=DefaultRelease COMPILER=gcc-6 LINUX=debian-9
  189. install: export OS=linux; export COMPILER='gcc-6'; export LINUX='debian-9';
  190. travis/install_linux.sh
  191. script: export OS=linux; export COMPILER='gcc-6'; export LINUX='debian-9';
  192. travis/postsubmit.sh DefaultRelease BuildAll
  193. before_cache:
  194. docker cp storm:/storm/. .
  195. # osx
  196. - stage: Build all
  197. os: osx
  198. compiler: clang
  199. env: BUILD=DefaultDebug COMPILER=clang-4.0 STL=libc++
  200. install: export OS=osx; export COMPILER='clang-4.0'; export STL='libc++';
  201. travis/install_osx.sh
  202. script: export OS=osx; export COMPILER='clang-4.0'; export STL='libc++';
  203. travis/postsubmit.sh DefaultDebug BuildAll
  204. - stage: Build all
  205. os: osx
  206. compiler: clang
  207. env: BUILD=DefaultRelease COMPILER=clang-4.0 STL=libc++
  208. install: export OS=osx; export COMPILER='clang-4.0'; export STL='libc++';
  209. travis/install_osx.sh
  210. script: export OS=osx; export COMPILER='clang-4.0'; export STL='libc++';
  211. travis/postsubmit.sh DefaultRelease BuildAll
  212. ###
  213. # Stage: ('Test all', 'TestAll')
  214. ###
  215. # ubuntu-16.10
  216. - stage: Test all
  217. os: linux
  218. compiler: gcc
  219. env: BUILD=DefaultDebug COMPILER=gcc-6 LINUX=ubuntu-16.10
  220. install: export OS=linux; export COMPILER='gcc-6'; export LINUX='ubuntu-16.10';
  221. travis/install_linux.sh
  222. script: export OS=linux; export COMPILER='gcc-6'; export LINUX='ubuntu-16.10';
  223. travis/postsubmit.sh DefaultDebug TestAll
  224. before_cache:
  225. docker cp storm:/storm/. .
  226. - stage: Test all
  227. os: linux
  228. compiler: gcc
  229. env: BUILD=DefaultRelease COMPILER=gcc-6 LINUX=ubuntu-16.10
  230. install: export OS=linux; export COMPILER='gcc-6'; export LINUX='ubuntu-16.10';
  231. travis/install_linux.sh
  232. script: export OS=linux; export COMPILER='gcc-6'; export LINUX='ubuntu-16.10';
  233. travis/postsubmit.sh DefaultRelease TestAll
  234. before_cache:
  235. docker cp storm:/storm/. .
  236. # debian-9
  237. - stage: Test all
  238. os: linux
  239. compiler: gcc
  240. env: BUILD=DefaultDebug COMPILER=gcc-6 LINUX=debian-9
  241. install: export OS=linux; export COMPILER='gcc-6'; export LINUX='debian-9';
  242. travis/install_linux.sh
  243. script: export OS=linux; export COMPILER='gcc-6'; export LINUX='debian-9';
  244. travis/postsubmit.sh DefaultDebug TestAll
  245. before_cache:
  246. docker cp storm:/storm/. .
  247. - stage: Test all
  248. os: linux
  249. compiler: gcc
  250. env: BUILD=DefaultRelease COMPILER=gcc-6 LINUX=debian-9
  251. install: export OS=linux; export COMPILER='gcc-6'; export LINUX='debian-9';
  252. travis/install_linux.sh
  253. script: export OS=linux; export COMPILER='gcc-6'; export LINUX='debian-9';
  254. travis/postsubmit.sh DefaultRelease TestAll
  255. before_cache:
  256. docker cp storm:/storm/. .
  257. # osx
  258. - stage: Test all
  259. os: osx
  260. compiler: clang
  261. env: BUILD=DefaultDebug COMPILER=clang-4.0 STL=libc++
  262. install: export OS=osx; export COMPILER='clang-4.0'; export STL='libc++';
  263. travis/install_osx.sh
  264. script: export OS=osx; export COMPILER='clang-4.0'; export STL='libc++';
  265. travis/postsubmit.sh DefaultDebug TestAll
  266. - stage: Test all
  267. os: osx
  268. compiler: clang
  269. env: BUILD=DefaultRelease COMPILER=clang-4.0 STL=libc++
  270. install: export OS=osx; export COMPILER='clang-4.0'; export STL='libc++';
  271. travis/install_osx.sh
  272. script: export OS=osx; export COMPILER='clang-4.0'; export STL='libc++';
  273. travis/postsubmit.sh DefaultRelease TestAll