Die Migration der Bereiche "Docker Registry" und "Artifiacts" ist fast abgeschlossen. Die letzten Daten werden im Laufe des heutigen Abend (05.08.2021) noch vollständig hochgeladen. Das Anlegen neuer Images und Artifacts funktioniert bereits wieder.

.gitlab-ci.yml 2.37 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

Pascal Maurice Porta's avatar
Pascal Maurice Porta committed
9
masterJobWindowsRpc:
Christoph von Oy's avatar
Christoph von Oy committed
10
11
  stage: windows
  script:
Pascal Maurice Porta's avatar
Pascal Maurice Porta committed
12
13
  - cd rpc
  - mvn -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -B  clean deploy --settings ..\settings.xml
hengwen's avatar
hengwen committed
14
  - mvn package sonar:sonar --settings ..\settings.xml -DskipTests
Pascal Maurice Porta's avatar
Pascal Maurice Porta committed
15
16
17
18
19
20
21
22
23
24
25
  tags:
  - Windows10
  only:
  - master
  
masterJobWindowsRestful:
  stage: windows
  script:
  - cd restful
  # TODO: we have to skip tests for now, because most tests require a running instance of zookeeper
  - mvn -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -B  clean deploy --settings ..\settings.xml -DskipTests
hengwen's avatar
hengwen committed
26
  - mvn package sonar:sonar --settings ..\settings.xml -DskipTests
Christoph von Oy's avatar
Christoph von Oy committed
27
28
  tags:
  - Windows10
Evgeny Kusmenko's avatar
Evgeny Kusmenko committed
29
30
31
  only:
  - master

32
branchJobWindowsRpc:
Pascal Porta's avatar
Pascal Porta committed
33
  stage: windows
hengwen's avatar
hengwen committed
34
  script:
Pascal Porta's avatar
Pascal Porta committed
35
  - cd rpc
Pascal Maurice Porta's avatar
Pascal Maurice Porta committed
36
  - 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
37
38
  tags:
  - Windows10
hengwen's avatar
hengwen committed
39
40
  except:
  - master
Pascal Porta's avatar
Pascal Porta committed
41

42
43
44
45
branchJobWindowsRestful:
  stage: windows
  script:
    - cd restful
Pascal Maurice Porta's avatar
Pascal Maurice Porta committed
46
47
    # TODO: we have to skip tests for now, because most tests require a running instance of zookeeper
    - mvn -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -B  clean install --settings ..\settings.xml -DskipTests
48
49
50
51
52
  tags:
    - Windows10
  except:
    - master

hengwen's avatar
hengwen committed
53
#branchJobLinux:
Pascal Porta's avatar
Pascal Porta committed
54
55
56
57
#  tags:
#    - docker
#  stage: linux
#  before_script:
hengwen's avatar
hengwen committed
58
#    - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
Pascal Porta's avatar
Pascal Porta committed
59
#  script:
hengwen's avatar
hengwen committed
60
61
62
63
64
65
66
#    - cd docker
#    - ./build.sh
#    - ./run_test.sh
#    - docker tag rpc-server:latest $CI_REGISTRY_IMAGE:rpc
#    - docker tag restful-server:latest $CI_REGISTRY_IMAGE:restful
#    - docker push $CI_REGISTRY_IMAGE:rpc
#    - docker push $CI_REGISTRY_IMAGE:restful
Pascal Porta's avatar
Pascal Porta committed
67
#  except:
hengwen's avatar
hengwen committed
68
69
70
#    - master

# build, test and publish docker images
hengwen's avatar
hengwen committed
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#masterJobLinux:
#  tags:
#    - docker
#  stage: linux
#  before_script:
#    - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
#  script:
#    - cd docker
#    - ./build.sh
#    - ./run_test.sh
#    - docker tag rpc-server:latest $CI_REGISTRY_IMAGE:rpc
#    - docker tag restful-server:latest $CI_REGISTRY_IMAGE:restful
#    - docker push $CI_REGISTRY_IMAGE:rpc
#    - docker push $CI_REGISTRY_IMAGE:restful
#  only:
#    - master