GitLab update scheduled for Friday, January 21th between 08:15 and 08:45 CET. If unpleasant, please contact René or Martin.

.gitlab-ci.yml 1.03 KB
Newer Older
René Schöne's avatar
fix CI    
René Schöne committed
1
2
3
variables:
  GIT_SUBMODULE_STRATEGY: recursive

René Schöne's avatar
René Schöne committed
4
5
stages:
- build
6
- test
René Schöne's avatar
René Schöne committed
7
- publish
René Schöne's avatar
René Schöne committed
8
9
10
11
12
13
14
15
16
17

before_script:
  - export GRADLE_USER_HOME=`pwd`/.gradle

cache:
  paths:
    - .gradle/wrapper
    - .gradle/caches

build:
René Schöne's avatar
René Schöne committed
18
  image: openjdk:11
René Schöne's avatar
René Schöne committed
19
20
21
22
23
  stage: build
  script:
    - ./gradlew --console=plain --no-daemon assemble jar
  artifacts:
    paths:
24
      - "ragconnect.base/build/libs/ragconnect-*.jar"
25
26
27
28
29
30
31
32
33
34
35
36
    expire_in: 1 week

test:
  image: openjdk:11
  stage: test
  services:
    - name: "eclipse-mosquitto:1.6.9"
      alias: "mqtt"
  script:
    - ./gradlew --console=plain --no-daemon allTests
  artifacts:
    reports:
37
      junit: "ragconnect.tests/build/test-results/test/**/TEST-*.xml"
38
    expire_in: 1 week
René Schöne's avatar
René Schöne committed
39

René Schöne's avatar
René Schöne committed
40
41
42
43
44
publish:
  image: openjdk:11
  stage: publish
  script:
    - "./gradlew publish"
René Schöne's avatar
René Schöne committed
45
46
  only:
    - master
René Schöne's avatar
René Schöne committed
47

René Schöne's avatar
René Schöne committed
48
49
pages:
  image: python:3.7-alpine
René Schöne's avatar
René Schöne committed
50
  stage: publish
René Schöne's avatar
René Schöne committed
51
52
53
54
55
56
57
58
  script:
  - pip install -U sphinx sphinx-rtd-theme recommonmark sphinxemoji sphinx-markdown-tables
  - sphinx-build -b html pages/ public
  artifacts:
    paths:
    - public
  only:
  - master