.gitlab-ci.yml 1.52 KB
Newer Older
1
2
3
4

variables:
    BUILD_SCRIPT: >
      sudo apt-get update -qq &&
Seb Mondet's avatar
Seb Mondet committed
5
6
7
8
9
      opam config exec -- opam remote add --priority 100 mothership https://github.com/ocaml/opam-repository.git &&
      opam config exec -- opam update --yes &&
      opam config exec -- opam upgrade --yes &&
      opam config exec -- opam pin --yes -n add vecosek-scene . &&
      opam config exec -- opam pin --yes -n add vecosek-engine . &&
10
11
      opam config exec -- opam pin --yes -n add stamifi https://gitlab.com/smondet/stamifi.git &&
      opam config exec -- opam pin --yes -n add vecosek-ama1 . &&
Seb Mondet's avatar
Seb Mondet committed
12
      opam config exec -- opam pin --yes -n add vecosek . &&
13
14
15
16
17
18
      opam config exec -- opam depext --yes vecosek &&
      opam config exec -- opam install --yes vecosek &&
      opam config exec -- vecosek --version
    BUILD_DOC: >
      sudo apt-get install -y pandoc &&
      opam config exec -- opam install --yes odoc &&
Seb Mondet's avatar
Seb Mondet committed
19
      opam config exec -- sh tools/build-doc.sh master &&
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
      opam config exec -- sh tools/build-doc.sh &&
      mkdir -p public &&
      cp -r _build/doc/html/* public/

ocaml:4030:
  image: ocaml/opam:ubuntu-16.04_ocaml-4.03.0
  script:
     - bash -c "$BUILD_SCRIPT"

ocaml:4042:
  image: ocaml/opam:ubuntu-16.04_ocaml-4.04.2
  script:
     - bash -c "$BUILD_SCRIPT"

ocaml:4050:
  image: ocaml/opam:ubuntu-16.04_ocaml-4.05.0
  script:
     - bash -c "$BUILD_SCRIPT"

Seb Mondet's avatar
Seb Mondet committed
39
pages:
40
41
42
43
44
45
46
  image: ocaml/opam:ubuntu-16.04_ocaml-4.05.0
  script:
     - bash -c "$BUILD_SCRIPT"
     - bash -c "$BUILD_DOC"
  artifacts:
     paths:
     - public
Seb Mondet's avatar
Seb Mondet committed
47
48
  only:
  - master