summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: 2a068042bdd2766b9dc71f049c7f26158e7c3e08 (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
image: openjdk:11

variables:
  MILL_CLI: "-D coursier.cache=$CI_PROJECT_DIR/.cache -j 0"

cache:
  paths:
    - .cache/

test:
  script:
    - ./mill $MILL_CLI mill.scalalib.scalafmt.ScalafmtModule/checkFormatAll __.sources
    - ./mill $MILL_CLI server.test

package:
  script:
    - ./mill $MILL_CLI server.assembly
  artifacts:
    paths:
      - out/server/assembly/dest/*.jar
    when: on_success
    expire_in: never
  rules:
    - if: $CI_COMMIT_TAG