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.
 
 
 
 
 
 

244 lines
4.7 KiB

  1. variables:
  2. GIT_SSL_NO_VERIFY: "1"
  3. # Commit of ghc/ci-images repository from which to pull Docker images
  4. DOCKER_REV: 1ac7f435c9312f10422a82d304194778378e2a1a
  5. ############################################################
  6. # CI Step
  7. ############################################################
  8. .debian:
  9. image: "registry.gitlab.haskell.org/ghc/ci-images/x86_64-linux-deb9:$DOCKER_REV"
  10. tags:
  11. - x86_64-linux
  12. variables:
  13. OS: "LINUX"
  14. BIT: "64"
  15. .alpine:64bit:
  16. image: "alpine:3.12"
  17. tags:
  18. - x86_64-linux
  19. variables:
  20. OS: "LINUX"
  21. BIT: "64"
  22. .alpine:32bit:
  23. image: "i386/alpine:3.12"
  24. tags:
  25. - x86_64-linux
  26. variables:
  27. OS: "LINUX"
  28. BIT: "32"
  29. .darwin:
  30. tags:
  31. - x86_64-darwin
  32. variables:
  33. OS: "DARWIN"
  34. BIT: "64"
  35. .freebsd:
  36. tags:
  37. - x86_64-freebsd
  38. variables:
  39. OS: "FREEBSD"
  40. BIT: "64"
  41. .root_cleanup:
  42. after_script:
  43. - BUILD_DIR=$CI_PROJECT_DIR
  44. - echo "Cleaning $BUILD_DIR"
  45. - cd $HOME
  46. - test -n "$BUILD_DIR"
  47. - shopt -s extglob
  48. - rm -Rf "$BUILD_DIR"/!(out)
  49. - exit 0
  50. .test_ghcup_version:
  51. script:
  52. - ./.gitlab/script/ghcup_version.sh
  53. variables:
  54. JSON_VERSION: "0.0.3"
  55. artifacts:
  56. expire_in: 2 week
  57. paths:
  58. - golden
  59. when: on_failure
  60. .test_ghcup_version:linux:
  61. extends:
  62. - .test_ghcup_version
  63. - .debian
  64. before_script:
  65. - ./.gitlab/before_script/linux/install_deps.sh
  66. .test_ghcup_version:linux32:
  67. extends:
  68. - .test_ghcup_version
  69. - .alpine:32bit
  70. before_script:
  71. - ./.gitlab/before_script/linux/alpine/install_deps.sh
  72. .test_ghcup_version:darwin:
  73. extends:
  74. - .test_ghcup_version
  75. - .darwin
  76. - .root_cleanup
  77. before_script:
  78. - ./.gitlab/before_script/darwin/install_deps.sh
  79. .test_ghcup_version:freebsd:
  80. extends:
  81. - .test_ghcup_version
  82. - .freebsd
  83. - .root_cleanup
  84. before_script:
  85. - ./.gitlab/before_script/freebsd/install_deps.sh
  86. .release_ghcup:
  87. script:
  88. - ./.gitlab/script/ghcup_release.sh
  89. artifacts:
  90. expire_in: 2 week
  91. paths:
  92. - out
  93. only:
  94. - tags
  95. ######## stack test ########
  96. test:linux:stack:
  97. before_script:
  98. - ./.gitlab/before_script/linux/install_deps_minimal.sh
  99. script:
  100. - ./.gitlab/script/ghcup_stack.sh
  101. extends:
  102. - .debian
  103. ######## bootstrap test ########
  104. test:linux:bootstrap_script:
  105. before_script:
  106. - ./.gitlab/before_script/linux/install_deps_minimal.sh
  107. script:
  108. - ./.gitlab/script/ghcup_bootstrap.sh
  109. variables:
  110. GHC_VERSION: "8.8.4"
  111. CABAL_VERSION: "3.2.0.0"
  112. extends:
  113. - .debian
  114. ######## linux test ########
  115. test:linux:recommended:
  116. extends: .test_ghcup_version:linux
  117. variables:
  118. GHC_VERSION: "8.8.4"
  119. CABAL_VERSION: "3.2.0.0"
  120. test:linux:latest:
  121. extends: .test_ghcup_version:linux
  122. variables:
  123. GHC_VERSION: "8.10.2"
  124. CABAL_VERSION: "3.2.0.0"
  125. allow_failure: true
  126. ######## linux 32bit test ########
  127. test:linux:recommended:32bit:
  128. extends: .test_ghcup_version:linux32
  129. variables:
  130. GHC_VERSION: "8.8.4"
  131. CABAL_VERSION: "3.2.0.0"
  132. ######## darwin test ########
  133. test:mac:recommended:
  134. extends: .test_ghcup_version:darwin
  135. variables:
  136. GHC_VERSION: "8.8.4"
  137. CABAL_VERSION: "3.2.0.0"
  138. test:mac:latest:
  139. extends: .test_ghcup_version:darwin
  140. variables:
  141. GHC_VERSION: "8.10.2"
  142. CABAL_VERSION: "3.2.0.0"
  143. allow_failure: true
  144. ######## freebsd test ########
  145. test:freebsd:recommended:
  146. extends: .test_ghcup_version:freebsd
  147. variables:
  148. GHC_VERSION: "8.8.4"
  149. CABAL_VERSION: "3.2.0.0"
  150. test:freebsd:latest:
  151. extends: .test_ghcup_version:freebsd
  152. variables:
  153. GHC_VERSION: "8.10.2"
  154. CABAL_VERSION: "3.2.0.0"
  155. allow_failure: true
  156. ######## linux release ########
  157. release:linux:64bit:
  158. extends:
  159. - .alpine:64bit
  160. - .release_ghcup
  161. before_script:
  162. - ./.gitlab/before_script/linux/alpine/install_deps.sh
  163. variables:
  164. ARTIFACT: "x86_64-linux-ghcup"
  165. GHC_VERSION: "8.8.4"
  166. CABAL_VERSION: "3.2.0.0"
  167. release:linux:32bit:
  168. extends:
  169. - .alpine:32bit
  170. - .release_ghcup
  171. before_script:
  172. - ./.gitlab/before_script/linux/alpine/install_deps.sh
  173. variables:
  174. ARTIFACT: "i386-linux-ghcup"
  175. GHC_VERSION: "8.8.4"
  176. CABAL_VERSION: "3.2.0.0"
  177. ######## darwin release ########
  178. release:darwin:
  179. extends:
  180. - .darwin
  181. - .release_ghcup
  182. - .root_cleanup
  183. before_script:
  184. - ./.gitlab/before_script/darwin/install_deps.sh
  185. variables:
  186. ARTIFACT: "x86_64-apple-darwin-ghcup"
  187. GHC_VERSION: "8.8.3"
  188. CABAL_VERSION: "3.2.0.0"
  189. MACOSX_DEPLOYMENT_TARGET: "10.7"
  190. ######## freebsd release ########
  191. release:freebsd:
  192. extends:
  193. - .freebsd
  194. - .release_ghcup
  195. - .root_cleanup
  196. before_script:
  197. - ./.gitlab/before_script/freebsd/install_deps.sh
  198. variables:
  199. ARTIFACT: "x86_64-portbld-freebsd-ghcup"
  200. GHC_VERSION: "8.8.3"
  201. CABAL_VERSION: "3.2.0.0"