aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: afade77cf373bde917ba33d3ffb984111df8b1ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
image: openjdk:8

stages:
  - test
  - release

cache:
  paths:
    - .cache/

test:
  stage: test
  script:
    - ./mill -D ivy.default.ivy.user.dir=.cache server.test

package:
  stage: release
  script:
    - ./mill -D ivy.default.ivy.user.dir=.cache server.assembly
  artifacts:
    paths:
      - out/server/assembly/dest/*.jar
    when: on_success
    expire_in: never
  only:
    - master
  rules:
    - if: $CI_COMMIT_TAG