.gitlab-ci.yml 721 Bytes
Newer Older
Andreas Muttscheller's avatar
Add CI  
Andreas Muttscheller committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
image: "hseeberger/scala-sbt:8u181_2.12.8_1.2.8"

variables:
  SBT_OPTS: "-Dsbt.global.base=sbt-cache/sbtboot -Dsbt.boot.directory=sbt-cache/boot -Dsbt.ivy.home=sbt-cache/ivy"

cache:
  # if you want to have a separate cache per branch, uncomment the next line
  untracked: true
  paths:
  - "sbt-cache/ivy/cache"
  - "sbt-cache/boot"
  - "sbt-cache/sbtboot"
  - "sbt-cache/target"

stages:
- build
- test

build:
  stage: build
  script:
22
  - sbt clean assembly
Andreas Muttscheller's avatar
Add CI  
Andreas Muttscheller committed
23
24
  artifacts:
    expire_in: 1 day
Andreas Muttscheller's avatar
Andreas Muttscheller committed
25
    untracked: true
Andreas Muttscheller's avatar
Add CI  
Andreas Muttscheller committed
26
27
28
29
30
31
32
33
    when: on_success
    paths:
    - target/

test:
  stage: test
  script:
  - sbt test
Andreas Muttscheller's avatar
Andreas Muttscheller committed
34
35
  dependencies:
  - build
Andreas Muttscheller's avatar
Add CI  
Andreas Muttscheller committed
36
37
38
39
40

it:
  stage: test
  script:
  - sbt cloudItTest
Andreas Muttscheller's avatar
Andreas Muttscheller committed
41
42
43
  when: manual
  dependencies:
  - build