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

3
stages:
4
#- windows
5
- docker 
6
- linux
Nils Freyer's avatar
Nils Freyer committed
7
- deploy
8

Evgeny Kusmenko's avatar
Evgeny Kusmenko committed
9
10
11
12
13
14
githubjob:
  image: maven:3-jdk-8
  stage: deploy
  before_script:
  - 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
  - eval $(ssh-agent -s)
Evgeny Kusmenko's avatar
Evgeny Kusmenko committed
15
  - ssh-add <(echo "$GITHUB_SSH_PRIV_KEY")
Evgeny Kusmenko's avatar
Evgeny Kusmenko committed
16
17
18
19
20
21
22
23
24
  - echo "$GITHUB_SSH_PRIV_KEY" | tr -d '\r' | ssh-add -
  - git config --global user.email "kusmenko@se-rwth.de"
  - git config --global user.name "EMA CI Robot"
  - mkdir -p ~/.ssh
#  - cat gitlab-known-hosts >> ~/.ssh/known_hosts
  - echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
  script: 
  - git clone git@github.com:MontiCore/EmbeddedMontiArc.git
  - cd EmbeddedMontiArc
Evgeny Kusmenko's avatar
Evgeny Kusmenko committed
25
  - git subtree pull --prefix $PRJ_NAME https://git.rwth-aachen.de/monticore/EmbeddedMontiArc/${PRJ_NAME}.git master --squash
Evgeny Kusmenko's avatar
Evgeny Kusmenko committed
26
27
28
29
30
  - git push --force
  only:
  - master


31
git masterJobLinux:
Nils Freyer's avatar
Nils Freyer committed
32
  stage: deploy
33
  image: maven:3-jdk-8
34
  script:
Evgeny Kusmenko's avatar
Evgeny Kusmenko committed
35
  - mvn -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -B  -U clean deploy --settings settings.xml -DskipTests
Evgeny Kusmenko's avatar
Evgeny Kusmenko committed
36
#  - cat target/site/jacoco/index.html
Evgeny Kusmenko's avatar
Evgeny Kusmenko committed
37
#  - mvn package sonar:sonar -s settings.xml
38
39
  only:
  - master
Evgeny Kusmenko's avatar
Evgeny Kusmenko committed
40
41
42
43
44
  except:
    changes:
    - .gitlab-ci.yml
    - README.md

Christopher Jan-Steffen Brix's avatar
Christopher Jan-Steffen Brix committed
45

46

Christopher Jan-Steffen Brix's avatar
Christopher Jan-Steffen Brix committed
47
integrationMXNetJobLinux:
Christopher Jan-Steffen Brix's avatar
Christopher Jan-Steffen Brix committed
48
  stage: linux
49
  image: registry.git.rwth-aachen.de/monticore/embeddedmontiarc/generators/emadl2cpp/dockerimages/mxnet150:v0.0.5
Christopher Jan-Steffen Brix's avatar
Christopher Jan-Steffen Brix committed
50
  script:
Julian Dierkes's avatar
Julian Dierkes committed
51
  - mvn -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -B  -U clean install --settings settings.xml -Dtest=IntegrationMXNetTest
Evgeny Kusmenko's avatar
Evgeny Kusmenko committed
52
  allow_failure: true
Evgeny Kusmenko's avatar
Evgeny Kusmenko committed
53
54
55
56
  except:
    changes:
    - .gitlab-ci.yml
    - README.md
Nils Freyer's avatar
Nils Freyer committed
57

58
59
60

integrationCaffe2JobLinux:
  stage: linux
61
  image: registry.git.rwth-aachen.de/monticore/embeddedmontiarc/generators/emadl2cpp/integrationtests/caffe2:v0.0.5
62
  script:
Evgeny Kusmenko's avatar
Evgeny Kusmenko committed
63
  - mvn -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -B  -U clean install --settings settings.xml -Dtest=IntegrationCaffe2Test
Evgeny Kusmenko's avatar
Evgeny Kusmenko committed
64
65
66
67
  except:
    changes:
    - .gitlab-ci.yml
    - README.md
Nils Freyer's avatar
Nils Freyer committed
68

69

Nicola Gatto's avatar
Nicola Gatto committed
70
71
integrationGluonJobLinux:
  stage: linux
72
  image: registry.git.rwth-aachen.de/monticore/embeddedmontiarc/generators/emadl2cpp/dockerimages/mxnet150:v0.0.5
Nicola Gatto's avatar
Nicola Gatto committed
73
  script:
Evgeny Kusmenko's avatar
Evgeny Kusmenko committed
74
  - mvn -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -B -X -U clean install --settings settings.xml -Dtest=IntegrationGluonTest
Evgeny Kusmenko's avatar
Evgeny Kusmenko committed
75
76
77
78
79
  except:
    changes:
    - .gitlab-ci.yml
    - README.md

Nicola Gatto's avatar
Nicola Gatto committed
80

81
82
83
84
integrationTensorflowJobLinux:
  stage: linux
  image: registry.git.rwth-aachen.de/monticore/embeddedmontiarc/generators/emadl2cpp/integrationtests/tensorflow
  script:
Evgeny Kusmenko's avatar
Evgeny Kusmenko committed
85
  - mvn -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -B -U clean install --settings settings.xml -Dtest=IntegrationTensorflowTest
Evgeny Kusmenko's avatar
Evgeny Kusmenko committed
86
87
88
89
  except:
    changes:
    - .gitlab-ci.yml
    - README.md
90

91
92
93
94
95

integrationPythonWrapperTest:
  stage: linux
  image: registry.git.rwth-aachen.de/monticore/embeddedmontiarc/generators/emadl2pythonwrapper/tests/mvn-swig:latest
  script:
Evgeny Kusmenko's avatar
Evgeny Kusmenko committed
96
  - mvn -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -B -U  clean install --settings settings.xml -Dtest=IntegrationPythonWrapperTest
Evgeny Kusmenko's avatar
Evgeny Kusmenko committed
97
98
99
100
  except:
    changes:
    - .gitlab-ci.yml
    - README.md
101
102


103
104
105
106
107
108
#masterJobWindows:
#  stage: windows
#  script:
#  - mvn -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -B -U clean install --settings settings.xml -Dtest="GenerationTest,SymtabTest"
#  tags:
#  - Windows10
Nils Freyer's avatar
Nils Freyer committed
109

110

Nils Freyer's avatar
Nils Freyer committed
111
UnitTestJobLinux:
112
  stage: linux
Julian Dierkes's avatar
Julian Dierkes committed
113
  image: registry.git.rwth-aachen.de/monticore/embeddedmontiarc/applications/gans/mnist-infogan/gans_mxnet:latest
Evgeny Kusmenko's avatar
Evgeny Kusmenko committed
114
#  image: maven:3-jdk-8
115
  script:
Evgeny Kusmenko's avatar
Evgeny Kusmenko committed
116
  - mvn -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -B -U clean install --settings settings.xml -Dtest="GenerationTest,SymtabTest*"
Evgeny Kusmenko's avatar
Evgeny Kusmenko committed
117
#  - cat target/site/jacoco/index.html
Evgeny Kusmenko's avatar
Evgeny Kusmenko committed
118
119
120
121
  except:
    changes:
    - .gitlab-ci.yml
    - README.md
122
123

buildDockerMXNet150:
124
  stage: docker
125
126
127
128
  tags:
    - shell
  script:
    - cd src/test/resources/docker/mxnet150
Evgeny Kusmenko's avatar
Evgeny Kusmenko committed
129
    - docker login registry.git.rwth-aachen.de -u someUserName -p yEep-tAt19HbsmNQJMNo
130
131
132
133
134
135
136
    - docker build -t registry.git.rwth-aachen.de/monticore/embeddedmontiarc/generators/emadl2cpp/dockerimages/mxnet150:v0.0.5 .
    - docker push registry.git.rwth-aachen.de/monticore/embeddedmontiarc/generators/emadl2cpp/dockerimages/mxnet150:v0.0.5
  only:
    changes:
    - src/test/resources/docker/mxnet150/**/*

buildDockerMXNet170:
137
  stage: docker
138
139
140
141
  tags:
    - shell
  script:
    - cd src/test/resources/docker/mxnet170
Evgeny Kusmenko's avatar
Evgeny Kusmenko committed
142
    - docker login registry.git.rwth-aachen.de -u someUserName -p yEep-tAt19HbsmNQJMNo
143
144
    - docker build -t registry.git.rwth-aachen.de/monticore/embeddedmontiarc/generators/emadl2cpp/dockerimages/mxnet170:v0.0.1 .
    - docker push registry.git.rwth-aachen.de/monticore/embeddedmontiarc/generators/emadl2cpp/dockerimages/mxnet170:v0.0.1
145
146
147
  only:
    changes:
    - src/test/resources/docker/mxnet170/**/*