.gitlab-ci.yml 745 Bytes
Newer Older
erwan's avatar
erwan committed
1
image: ocaml/opam2:ubuntu
2
3
4
5

variables:
  GIT_STRATEGY: clone

6
  
erwan's avatar
erwan committed
7
stages:
8
  - build
9
  - test
10
11
  - release
 
12

erwan's avatar
erwan committed
13
build_and_test:
14
  stage: build
15
  script:
erwan's avatar
erwan committed
16
    - sudo apt-get install -y m4
erwan's avatar
erwan committed
17
    - opam update
18
    - opam install dune ocamlfind num
19
    - make
20
    - make install
21
22
    - cd test
    - make test-batch
erwan's avatar
erwan committed
23

24
25
26
27
28
test_opam_test:
  stage: test
  script:
    - opam repo add verimag-sync-repo "http://www-verimag.imag.fr/DIST-TOOLS/SYNCHRONE/test/opam-repository"
    - opam update
29
30
    - opam depext lutils -y
    - opam install lutils -y
31
32
33
34

release:
  before_script:
    - yarn install --frozen-lockfile
35
  image: node:12
36
37
38
  only:
    - master
  script:
39
    - $(yarn bin)/semantic-delivery-gitlab --preset eslint  --token ${GITLAB_AUTH_TOKEN}
40
  stage: release