.gitlab-ci.yml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. stages:
  2. # Test with alpine
  3. - test
  4. # Test with alpine, other version of the compiler
  5. - other_version
  6. # Real world distributions
  7. - real
  8. # OCaml version 4.04
  9. ocaml_404:
  10. before_script:
  11. - sudo apk update && sudo apk add m4
  12. stage: other_version
  13. image: ocaml/opam:alpine_ocaml-4.04.0
  14. script: "./gitlab-ci.sh"
  15. allow_failure: true
  16. # OCaml version 4.04
  17. ocaml_404_flambda:
  18. before_script:
  19. - sudo apk update && sudo apk add m4
  20. stage: other_version
  21. image: ocaml/opam:alpine_ocaml-4.04.0_flambda
  22. script: "./gitlab-ci.sh"
  23. allow_failure: true
  24. # OCaml version 4.02
  25. ocaml_402:
  26. before_script:
  27. - sudo apk update && sudo apk add m4
  28. stage: other_version
  29. image: ocaml/opam:alpine_ocaml-4.02.3
  30. script: "./gitlab-ci.sh"
  31. allow_failure: true
  32. # OCaml version 4.03
  33. ocaml_403:
  34. before_script:
  35. - sudo apk update && sudo apk add m4
  36. stage: test
  37. image: ocaml/opam:alpine_ocaml-4.03.0
  38. script: "./gitlab-ci.sh"
  39. allow_failure: false
  40. cache:
  41. paths:
  42. - /home/opam/.opam
  43. # OCaml version 4.03, with flambda optimisation
  44. ocaml_403_flambda:
  45. before_script:
  46. - sudo apk update && sudo apk add m4
  47. stage: other_version
  48. image: ocaml/opam:alpine_ocaml-4.03.0_flambda
  49. script: "./gitlab-ci.sh"
  50. allow_failure: true
  51. # ---------------
  52. ubuntu:
  53. before_script:
  54. - sudo apt-get update && sudo apt-get install -y m4
  55. stage: real
  56. image: ocaml/opam:ubuntu
  57. script: "export OC_NOTEST=true; ./gitlab-ci.sh system"
  58. allow_failure: true
  59. debian:
  60. before_script:
  61. - sudo apt-get update && sudo apt-get install -y m4
  62. stage: real
  63. image: ocaml/opam:debian
  64. script: "export OC_NOTEST=true; ./gitlab-ci.sh system"
  65. allow_failure: true
  66. centos:
  67. before_script:
  68. - sudo yum install -y m4
  69. stage: real
  70. image: ocaml/opam:centos
  71. script: "export OC_NOTEST=true; ./gitlab-ci.sh system"
  72. allow_failure: true
  73. fedora:
  74. before_script:
  75. - sudo dnf install -y m4
  76. stage: real
  77. image: ocaml/opam:fedora
  78. script: "export OC_NOTEST=true; ./gitlab-ci.sh system"
  79. allow_failure: true
  80. opensuse:
  81. before_script:
  82. - sudo zypper --non-interactive up && sudo zypper --non-interactive in m4
  83. stage: real
  84. image: ocaml/opam:opensuse
  85. script: "export OC_NOTEST=true; ./gitlab-ci.sh system"
  86. allow_failure: true