.gitlab-ci.yml 511 Bytes
Newer Older
Tim Martin's avatar
Tim Martin committed
1
2
3
4
5
6
7
8
9
image: maven:latest

stages:
  - build
  - deploy

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

  artifacts:
15
    expire_in: 1h
Tim Martin's avatar
Tim Martin committed
16
17
18
19
20
    paths:
      - target/clif-webui-*.war
      
pages:
  stage: deploy
21
22
23
24
  only:
    - master
  dependencies:
    - build
Tim Martin's avatar
Tim Martin committed
25
  script:
26
    - mkdir -p public/download
27
28
29
    - cd public/download && ../../gitlab-pages/bin/download-page.sh > index.html
    - cp -a ../../gitlab-pages/images ../

Tim Martin's avatar
Tim Martin committed
30
31
32
  artifacts:
    paths:
      - public