.gitlab-ci.yml 1.82 KB
Newer Older
David Schmidt's avatar
David Schmidt committed
1 2 3 4
# test all branches by building the application
# for master: build and deploy update/software-site and release archives
# unfortunately build has to be run for each deployment since artifacts are too big for upload

5
stages:
David Schmidt's avatar
David Schmidt committed
6
- test
David Schmidt's avatar
David Schmidt committed
7
- builddeploy
8

David Schmidt's avatar
David Schmidt committed
9 10 11
testbuild:
    stage: test
    script:
Markus Krug's avatar
Markus Krug committed
12
    - cd /home/gitlab-runner/builds/8d30a975/0/kallimachos/Athen
David Schmidt's avatar
David Schmidt committed
13 14
    - cd de.uniwue.mk.athen
    - mvn clean install
Markus Krug's avatar
Markus Krug committed
15
    - cd /home/gitlab-runner/builds/8d30a975/0/kallimachos/Athen/de.uniwue.mk.athen/releng/de.uniwue.mk.athen.product/target/products
David Schmidt's avatar
David Schmidt committed
16

David Schmidt's avatar
David Schmidt committed
17 18 19
deploy-updatesite:
    stage: builddeploy
    script:
Markus Krug's avatar
Markus Krug committed
20
    - cd /home/gitlab-runner/builds/8d30a975/0/kallimachos/Athen/de.uniwue.mk.athen
David Schmidt's avatar
David Schmidt committed
21
    - mvn clean install
Markus Krug's avatar
Markus Krug committed
22
    - cd /home/gitlab-runner/builds/8d30a975/0/kallimachos/Athen/de.uniwue.mk.athen/releng/de.uniwue.mk.athen.update/target/repository
23
    - rm -R /var/www/html/nappi/athen-update-site/*
David Schmidt's avatar
David Schmidt committed
24 25 26
    - cp -R * /var/www/html/nappi/athen-update-site/
    only:
    - master
David Schmidt's avatar
David Schmidt committed
27

David Schmidt's avatar
David Schmidt committed
28 29 30
deploy-release:
    stage: builddeploy
    script:
Markus Krug's avatar
Markus Krug committed
31
    - cd /home/gitlab-runner/builds/8d30a975/0/kallimachos/Athen/de.uniwue.mk.athen
David Schmidt's avatar
David Schmidt committed
32
    - mvn clean install
Markus Krug's avatar
Markus Krug committed
33
    - cd /home/gitlab-runner/builds/8d30a975/0/kallimachos/Athen/de.uniwue.mk.athen/releng/de.uniwue.mk.athen.product/target/products
David Schmidt's avatar
David Schmidt committed
34 35 36
    - cp *.zip /var/www/html/nappi/release/
    only:
    - master
David Schmidt's avatar
David Schmidt committed
37 38 39 40

deploy-softwaresite:
    stage: builddeploy
    script:
David Schmidt's avatar
David Schmidt committed
41
    - cd /home/gitlab-runner/builds/8d30a975/0/mak28ma/KallimachosTypesystemUtil
42
    - git checkout master
David Schmidt's avatar
David Schmidt committed
43 44
    - git pull
    - mvn clean install
Markus Krug's avatar
Markus Krug committed
45
    - cd /home/gitlab-runner/builds/8d30a975/0/kallimachos/Athen/de.uniwue.mk.athen
David Schmidt's avatar
David Schmidt committed
46
    - mvn clean install
Markus Krug's avatar
Markus Krug committed
47
    - cd /home/gitlab-runner/builds/8d30a975/0/kallimachos/Athen/de.uniwue.mk.athen/releng/p2-maven-plugin
David Schmidt's avatar
David Schmidt committed
48 49 50
    - "mvn p2:site"
    - cd target/repository
    - cp -R * /var/www/html/nappi/athen-software-site/
David Schmidt's avatar
David Schmidt committed
51
    only:
David Schmidt's avatar
David Schmidt committed
52
    - master