-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
64 lines (57 loc) · 1.82 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
image: maven:latest
before_script: []
stages:
- build
- test
- release
documentation:
image: "timnn/texlive"
stage: "build"
script: [
"apt-get update && apt-get install -y python3-pip",
"pip3 install Pygments",
"cd documentation",
"pdflatex -synctex=1 --shell-escape -interaction=nonstopmode Main.tex",
"bibtex Main",
"pdflatex -synctex=1 --shell-escape -interaction=nonstopmode Main.tex",
"pdflatex -synctex=1 --shell-escape -interaction=nonstopmode Main.tex"
]
artifacts:
paths:
- documentation/Main.pdf
build:
stage: build
rules:
- if: $CI_COMMIT_TAG
script:
- echo "Building extension"
- mvn -B clean compile
- mvn -B assembly:single
artifacts:
paths:
- target/*.{zip,tgz}
expire_in: never
test:
stage: test
script:
- mvn -B clean test
release:
stage: release
image: registry.gitlab.com/gitlab-org/release-cli
rules:
- if: $CI_COMMIT_TAG
script:
- echo 'running release job'
release:
name: 'Release $CI_COMMIT_TAG'
description: './changelog/$CI_COMMIT_TAG.md'
tag_name: '$CI_COMMIT_TAG'
ref: '$CI_COMMIT_SHA'
assets:
links:
- name: 'geojson-export-$CI_COMMIT_TAG.zip'
url: 'https://gitlab.com/labiangashi/geojson-export/-/jobs/artifacts/$CI_COMMIT_TAG/raw/target/geojson-export-$CI_COMMIT_TAG.zip?job=build'
- name: 'geojson-export-$CI_COMMIT_TAG.tgz'
url: 'https://gitlab.com/labiangashi/geojson-export/-/jobs/artifacts/$CI_COMMIT_TAG/raw/target/geojson-export-$CI_COMMIT_TAG.tgz?job=build'
- name: 'Documentation.pdf'
url: 'https://gitlab.com/labiangashi/geojson-export/-/jobs/artifacts/$CI_COMMIT_TAG/raw/documentation/Main.pdf?job=documentation'