.gitlab-ci.yml 743 Bytes
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
René Schöne's avatar
René Schöne committed
6
- publish
René Schöne's avatar
René Schöne committed
7
8
9
10
11
12
13
14
15
16

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

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

build:
René Schöne's avatar
René Schöne committed
17
  image: openjdk:11
René Schöne's avatar
René Schöne committed
18
19
20
21
22
23
  stage: build
  script:
    - ./gradlew --console=plain --no-daemon assemble jar
  artifacts:
    paths:
      - "/builds/jastadd/ragconnect/build/libs/ragconnect-*.jar"
René Schöne's avatar
René Schöne committed
24

René Schöne's avatar
René Schöne committed
25
26
27
28
29
publish:
  image: openjdk:11
  stage: publish
  script:
    - "./gradlew publish"
René Schöne's avatar
René Schöne committed
30
31
  only:
    - master
René Schöne's avatar
René Schöne committed
32

René Schöne's avatar
René Schöne committed
33
34
pages:
  image: python:3.7-alpine
René Schöne's avatar
René Schöne committed
35
  stage: publish
René Schöne's avatar
René Schöne committed
36
37
38
39
40
41
42
43
  script:
  - pip install -U sphinx sphinx-rtd-theme recommonmark sphinxemoji sphinx-markdown-tables
  - sphinx-build -b html pages/ public
  artifacts:
    paths:
    - public
  only:
  - master