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.19 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
    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
René Schöne's avatar
René Schöne committed
35
36
37
38
    - ls -lh
    - ls -lh ragconnect.tests
    - ls -lh ragconnect.tests/build/test-results/
    - ls -lh ragconnect.tests/build/test-results/allTests
39
  artifacts:
René Schöne's avatar
René Schöne committed
40
    when: always
41
    reports:
René Schöne's avatar
René Schöne committed
42
      junit: "ragconnect.tests/build/test-results/**/TEST-*.xml"
43
    expire_in: 1 week
René Schöne's avatar
René Schöne committed
44

René Schöne's avatar
René Schöne committed
45
46
47
48
49
publish:
  image: openjdk:11
  stage: publish
  script:
    - "./gradlew publish"
René Schöne's avatar
René Schöne committed
50
51
  only:
    - master
René Schöne's avatar
René Schöne committed
52

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