.gitlab-ci.yml 753 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
- deploy
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
24
  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
25

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

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