.gitlab-ci.yml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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. # OCaml version 4.03, with flambda optimisation
  41. ocaml_403_flambda:
  42. before_script:
  43. - sudo apk update && sudo apk add m4
  44. stage: other_version
  45. image: ocaml/opam:alpine_ocaml-4.03.0_flambda
  46. script: "./gitlab-ci.sh"
  47. allow_failure: true
  48. # ---------------
  49. ubuntu:
  50. before_script:
  51. - sudo apt-get update && sudo apt-get install -y m4
  52. stage: real
  53. image: ocaml/opam:ubuntu
  54. script: "export OC_NOTEST=true; ./gitlab-ci.sh system"
  55. allow_failure: true
  56. debian:
  57. before_script:
  58. - sudo apt-get update && sudo apt-get install -y m4
  59. stage: real
  60. image: ocaml/opam:debian
  61. script: "export OC_NOTEST=true; ./gitlab-ci.sh system"
  62. allow_failure: true
  63. centos:
  64. before_script:
  65. - sudo yum install -y m4
  66. stage: real
  67. image: ocaml/opam:centos
  68. script: "export OC_NOTEST=true; ./gitlab-ci.sh system"
  69. allow_failure: true
  70. fedora:
  71. before_script:
  72. - sudo dnf install -y m4
  73. stage: real
  74. image: ocaml/opam:fedora
  75. script: "export OC_NOTEST=true; ./gitlab-ci.sh system"
  76. allow_failure: true
  77. opensuse:
  78. before_script:
  79. - sudo zypper --non-interactive up && sudo zypper --non-interactive in m4
  80. stage: real
  81. image: ocaml/opam:opensuse
  82. script: "export OC_NOTEST=true; ./gitlab-ci.sh system"
  83. allow_failure: true