.gitlab-ci.yml 2.46 KB
Newer Older
ham's avatar
ham committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#
# ******************************************************************************
#  MontiCAR Modeling Family, www.se-rwth.de
#  Copyright (c) 2017, Software Engineering Group at RWTH Aachen,
#  All rights reserved.
#
#  This project is free software; you can redistribute it and/or
#  modify it under the terms of the GNU Lesser General Public
#  License as published by the Free Software Foundation; either
#  version 3.0 of the License, or (at your option) any later version.
#  This library is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
#  Lesser General Public License for more details.
#
#  You should have received a copy of the GNU Lesser General Public
#  License along with this project. If not, see <http://www.gnu.org/licenses/>.
# *******************************************************************************
#

Evgeny Kusmenko's avatar
Evgeny Kusmenko committed
21
22
23
image: maven:3-jdk-8

stages:
Evgeny Kusmenko's avatar
Evgeny Kusmenko committed
24
- windows
hengwen's avatar
Fix yml    
hengwen committed
25
- linux
Evgeny Kusmenko's avatar
Evgeny Kusmenko committed
26

Christoph von Oy's avatar
Christoph von Oy committed
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#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
43
  - 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
44
45
  tags:
  - Windows10
Evgeny Kusmenko's avatar
Evgeny Kusmenko committed
46
47
48
  only:
  - master

hengwen's avatar
hengwen committed
49
50
51
52
53
54
55
56
#branchJobWindows:
#  stage: windows
#  script:
#  - mvn -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -B  clean install --settings settings.xml
#  tags:
#  - Windows10
#  except:
#  - master
Christoph von Oy's avatar
Christoph von Oy committed
57

hengwen's avatar
hengwen committed
58
BranchJobLinux:
hengwen's avatar
hengwen committed
59
60
  tags:
    - docker
hengwen's avatar
hengwen committed
61
62
63
  stage: linux
  image: maven:3-jdk-8
  before_script:
hengwen's avatar
hengwen committed
64
  - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
hengwen's avatar
hengwen committed
65
  script:
hengwen's avatar
hengwen committed
66
67
  - apt-get update
  - apt-get install -y openjfx
hengwen's avatar
hengwen committed
68
69
  - cd restful
  - ./run_test.sh
hengwen's avatar
hengwen committed
70
71
72
73
74
#  - 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
hengwen's avatar
hengwen committed
75
76
  except:
  - master