.gitlab-ci.yml 1.26 KB
Newer Older
1 2 3 4 5 6 7 8
#
#
# (c) https://github.com/MontiCore/monticore
#
# The license generally applicable for this project
# can be found under https://github.com/MontiCore/monticore.
#

Bernhard Rumpe's avatar
BR-sy  
Bernhard Rumpe committed
9
# (c) https://github.com/MontiCore/monticore
10 11
#

Evgeny Kusmenko's avatar
Evgeny Kusmenko committed
12
stages:
Evgeny Kusmenko's avatar
Evgeny Kusmenko committed
13
#- test
Evgeny Kusmenko's avatar
Evgeny Kusmenko committed
14 15
- windows
- linux
Thomas Michael Timmermanns's avatar
Thomas Michael Timmermanns committed
16 17


Evgeny Kusmenko's avatar
Evgeny Kusmenko committed
18 19
#include:
#  template: License-Management.gitlab-ci.yml
Evgeny Kusmenko's avatar
Evgeny Kusmenko committed
20
  
Evgeny Kusmenko's avatar
Evgeny Kusmenko committed
21 22 23
#license_management:
#  variables:
#    MAVEN_CLI_OPTS: --settings=settings.xml
Evgeny Kusmenko's avatar
Evgeny Kusmenko committed
24

Evgeny Kusmenko's avatar
Evgeny Kusmenko committed
25 26 27 28 29
masterJobLinux:
  stage: linux
  image: maven:3-jdk-8
  script: 
  - 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
30
  - mvn package sonar:sonar -s settings.xml
Evgeny Kusmenko's avatar
Evgeny Kusmenko committed
31 32 33 34
  except:
    changes:
    - README.md
    - .gitignore
Evgeny Kusmenko's avatar
Evgeny Kusmenko committed
35
    - .gitlab-ci.yml
Evgeny Kusmenko's avatar
Evgeny Kusmenko committed
36 37 38 39 40 41 42 43
  only:
  - master
  
masterJobWindows:
  stage: windows
  script: 
  - mvn -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -B  clean install --settings settings.xml
  tags:
Evgeny Kusmenko's avatar
Evgeny Kusmenko committed
44
  - Windows10
Evgeny Kusmenko's avatar
Evgeny Kusmenko committed
45 46
  except:
    changes:
Evgeny Kusmenko's avatar
Evgeny Kusmenko committed
47 48
    - README.md
    - .gitignore
vonWenckstern's avatar
vonWenckstern committed
49

Evgeny Kusmenko's avatar
Evgeny Kusmenko committed
50 51 52 53 54 55 56
BranchJobLinux:
  stage: linux
  image: maven:3-jdk-8
  script: 
  - mvn -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -B  clean install --settings settings.xml
  except:
  - master
Evgeny Kusmenko's avatar
Evgeny Kusmenko committed
57
  except:
Evgeny Kusmenko's avatar
Evgeny Kusmenko committed
58 59 60
    changes:
    - README.md
    - .gitignore