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

Evgeny Kusmenko's avatar
Evgeny Kusmenko committed
3 4 5
image: maven:3-jdk-8

stages:
Evgeny Kusmenko's avatar
Evgeny Kusmenko committed
6
- windows
hengwen's avatar
Fix yml  
hengwen committed
7
- linux
Evgeny Kusmenko's avatar
Evgeny Kusmenko committed
8

Christoph von Oy's avatar
Christoph von Oy committed
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
#masterJobLinux:
#  stage: linux
#  image: maven:3-jdk-8
#  before_script:
#  - apt-get update
#  - apt-get install -y openjfx
#  script: 
#  - mvn -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -B  clean deploy --settings settings.xml
#  - cat target/site/jacoco/index.html
#  - mvn package sonar:sonar -s settings.xml
#  only:
#  - master

masterJobWindows:
  stage: windows
  script:
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
Christoph von Oy's avatar
Christoph von Oy committed
26 27
  tags:
  - Windows10
Evgeny Kusmenko's avatar
Evgeny Kusmenko committed
28 29 30
  only:
  - master

31
branchJobWindowsRpc:
Pascal Porta's avatar
Pascal Porta committed
32
  stage: windows
hengwen's avatar
hengwen committed
33
  script:
Pascal Porta's avatar
Pascal Porta committed
34
  - cd rpc
Pascal Maurice Porta's avatar
Pascal Maurice Porta committed
35
  - mvn -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -B  clean install --settings ..\settings.xml
Pascal Porta's avatar
Pascal Porta committed
36 37
  tags:
  - Windows10
hengwen's avatar
hengwen committed
38 39
  except:
  - master
Pascal Porta's avatar
Pascal Porta committed
40

41 42 43 44 45 46 47 48 49 50
branchJobWindowsRestful:
  stage: windows
  script:
    - cd restful
    - mvn -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -B  clean install --settings ..\settings.xml
  tags:
    - Windows10
  except:
    - master

Pascal Porta's avatar
Pascal Porta committed
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
#BranchJobLinux:
#  tags:
#    - docker
#  stage: linux
#  image: maven:3-jdk-8
#  before_script:
#  - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
#  script:
##  - apt-get update
##  - apt-get install -y openjfx
#  - cd restful
#  - ./run_test.sh
##  - docker tag rmi-server:latest $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
##  - docker tag rmi-server:latest $CI_REGISTRY_IMAGE:latest
##  - docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
##  - docker push $CI_REGISTRY_IMAGE:latest
#  #  - mvn -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -B  clean install --settings settings.xml
#  except:
#  - master