.gitlab-ci.yml 1.07 KB
Newer Older
Bernhard Rumpe's avatar
BR-sy    
Bernhard Rumpe committed
1
# (c) https://github.com/MontiCore/monticore  
vonWenckstern's avatar
vonWenckstern committed
2

3
4
5
6
7
8
9
10
stages:
- windows
- linux

masterJobLinux:
  stage: linux
  image: maven:3-jdk-8
  script: 
11
  - mvn -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -B  clean deploy --settings settings.xml
12
13
  - cat target/site/jacoco/index.html
  - mvn package sonar:sonar -s settings.xml
14
15
  only:
  - master
Evgeny Kusmenko's avatar
Evgeny Kusmenko committed
16
17
18
19
20
21
  except:
    changes:
    - README.md
    - .gitignore
    - .gitlab-ci.yml

22
  
23
24
25
masterJobWindows:
  stage: windows
  script:
26
  - mvn -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -B  clean install --settings settings.xml
27
28
  tags:
  - Windows10
Evgeny Kusmenko's avatar
Evgeny Kusmenko committed
29
30
31
32
33
34
  except:
    changes:
    - README.md
    - .gitignore
    - .gitlab-ci.yml

35
36
37
38
39

BranchJobLinux:
  stage: linux
  image: maven:3-jdk-8
  script: 
40
  - mvn -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -B  clean install --settings settings.xml
41
  - cat target/site/jacoco/index.html
42
43
  except:
  - master
Evgeny Kusmenko's avatar
Evgeny Kusmenko committed
44
45
46
47
48
49
  except:
    changes:
    - README.md
    - .gitignore
    - .gitlab-ci.yml