This repository has been archived by the owner on Dec 22, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
47 lines (42 loc) · 1.67 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
image: java:8
before_script:
- apt-get update && apt-get install -y ant openjfx
- wget -q https://storage.googleapis.com/gwt-releases/gwt-2.8.2.zip && unzip -qq -o -d .. gwt-2.8.2.zip
- (cd vendor && wget -q https://builds.apache.org/job/Ivy/lastStableBuild/artifact/build/artifact/jars/ivy.jar)
- mkdir -p "$CI_PROJECT_DIR"/.ivy/local/com.sun/tools/1.8.0_111.0/jars/
- mkdir -p "$CI_PROJECT_DIR"/.ivy/local/com.google.gwt/gwt-dev/2.7.0/jars/
- mkdir -p "$CI_PROJECT_DIR"/.ivy/local/com.google.gwt/gwt-user/2.7.0/jars/
- cp /usr/lib/jvm/java-8-openjdk-amd64/lib/tools.jar "$CI_PROJECT_DIR"/.ivy/local/com.sun/tools/1.8.0_111.0/jars/
- cp ../gwt-2.8.2/gwt-dev.jar "$CI_PROJECT_DIR"/.ivy/local/com.google.gwt/gwt-dev/2.7.0/jars/
- cp ../gwt-2.8.2/gwt-user.jar "$CI_PROJECT_DIR"/.ivy/local/com.google.gwt/gwt-user/2.7.0/jars/
stages:
- test
- deploy
- tex
testjob:
stage: test
script:
- wget https://github.com/mholt/caddy/releases/download/v0.10.11/caddy_v0.10.11_linux_amd64.tar.gz
- tar xzf caddy_v0.10.11_linux_amd64.tar.gz
- nohup ./caddy &
- ant test-ci -lib vendor
deployjob:
stage: deploy
only:
- master
script:
- git rev-parse --short HEAD > war/VERSION
- ant war -lib vendor
- curl -F 'war=@aurora.war' "https://aurora.younishd.fr:8080?key=$DEPLOY_KEY"
texjob:
stage: tex
image: blang/latex
only:
- master
before_script:
- echo "nop"
script:
- (cd docs/qualitätssicherung/tex && pdflatex Testbericht.tex && pdflatex Testbericht.tex)
artifacts:
paths:
- "docs/qualitätssicherung/tex/Testbericht.pdf"