.gitlab-ci.yml 655 Bytes
Newer Older
1
image: maven:3.8-openjdk-8
Tim Martin's avatar
Tim Martin committed
2
3
4

stages:
  - build
5
  - test
Tim Martin's avatar
Tim Martin committed
6
7
8
9
10
  - deploy

build:
  stage: build
  script:
11
12
    - git submodule init
    - git submodule update
Tim Martin's avatar
Tim Martin committed
13
14
15
    - mvn install

  artifacts:
16
    expire_in: never
Tim Martin's avatar
Tim Martin committed
17
18
    paths:
      - target/clif-webui-*.war
19
20

test:
21
22
23
  stage: test
  dependencies:
    - build
24
25
26
27
28
  script:
    - npm install
    - mocha --timeout 10000 --exit


Tim Martin's avatar
Tim Martin committed
29
30
pages:
  stage: deploy
31
32
33
34
  only:
    - master
  dependencies:
    - build
Tim Martin's avatar
Tim Martin committed
35
  script:
36
    - mkdir -p public/download
37
38
39
    - cd public/download && ../../gitlab-pages/bin/download-page.sh > index.html
    - cp -a ../../gitlab-pages/images ../

Tim Martin's avatar
Tim Martin committed
40
  artifacts:
41
    expire_in: 1h
Tim Martin's avatar
Tim Martin committed
42
43
    paths:
      - public