.gitlab-ci.yml 1.67 KB
Newer Older
Jean Meurice's avatar
Jean Meurice committed
1 2 3 4 5
#
# (c) https://github.com/MontiCore/monticore
#
# The license generally applicable for this project
# can be found under https://github.com/MontiCore/monticore.
Evgeny Kusmenko's avatar
sonar  
Evgeny Kusmenko committed
6 7
#

Evgeny Kusmenko's avatar
Evgeny Kusmenko committed
8
stages:
9
- build
kusmenko@se-rwth.de's avatar
kusmenko@se-rwth.de committed
10

Evgeny Kusmenko's avatar
Evgeny Kusmenko committed
11
masterJobLinux:
12
  stage: build
vonWenckstern's avatar
vonWenckstern committed
13
  image: maven:3-jdk-8
Jean Meurice's avatar
Jean Meurice committed
14 15 16 17 18
  before_script:
  - apt update
  - apt --assume-yes install libxext6
  - apt --assume-yes install libxrender1
  - apt --assume-yes install libxtst6
Evgeny Kusmenko's avatar
Evgeny Kusmenko committed
19
  script: 
Jean Meurice's avatar
Jean Meurice committed
20 21 22 23 24
  - "JAWT_LIB=$(find / -name libjawt.so -print -quit)"
  - "echo JAWT_LIB: $JAWT_LIB"
  - "JAWT_FOLDER=$(dirname ${JAWT_LIB})"
  - "echo JAWT_FOLDER: $JAWT_FOLDER"
  - "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${JAWT_FOLDER}"
Evgeny Kusmenko's avatar
Evgeny Kusmenko committed
25
  - mvn -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -B  clean deploy --settings settings.xml
Evgeny Kusmenko's avatar
Evgeny Kusmenko committed
26
  - mvn package sonar:sonar -s settings.xml
kusmenko@se-rwth.de's avatar
kusmenko@se-rwth.de committed
27 28
  only:
  - master
Evgeny Kusmenko's avatar
Evgeny Kusmenko committed
29 30
  tags:
  - se
kusmenko@se-rwth.de's avatar
kusmenko@se-rwth.de committed
31
  
Evgeny Kusmenko's avatar
Evgeny Kusmenko committed
32
masterJobWindows:
33
  stage: build
Evgeny Kusmenko's avatar
Evgeny Kusmenko committed
34 35
  script: 
  - mvn -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -B  clean install --settings settings.xml
Evgeny Kusmenko's avatar
Evgeny Kusmenko committed
36 37
  tags:
  - Windows10
Evgeny Kusmenko's avatar
Evgeny Kusmenko committed
38 39

BranchJobLinux:
40
  stage: build
vonWenckstern's avatar
vonWenckstern committed
41
  image: maven:3-jdk-8
42
  before_script:
Jean Meurice's avatar
Jean Meurice committed
43 44 45 46
  - apt update
  - apt --assume-yes install libxext6
  - apt --assume-yes install libxrender1
  - apt --assume-yes install libxtst6
Jean Meurice's avatar
Jean Meurice committed
47
  #- apt --assume-yes install realpath
Jean Meurice's avatar
Jean Meurice committed
48
  script: 
Jean Meurice's avatar
Jean Meurice committed
49 50 51 52 53
  - "JAWT_LIB=$(find / -name libjawt.so -print -quit)"
  - "echo JAWT_LIB: $JAWT_LIB"
  - "JAWT_FOLDER=$(dirname ${JAWT_LIB})"
  - "echo JAWT_FOLDER: $JAWT_FOLDER"
  - "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${JAWT_FOLDER}"
Evgeny Kusmenko's avatar
Evgeny Kusmenko committed
54
  - mvn -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -B  clean install --settings settings.xml
kusmenko@se-rwth.de's avatar
kusmenko@se-rwth.de committed
55
  except:
56 57
  - master
  tags:
Jean Meurice's avatar
Jean Meurice committed
58
  - se