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

stages:
Ahmed's avatar
Ahmed committed
4
- linux
Ahmed's avatar
Ahmed committed
5

Ahmed's avatar
Ahmed committed
6
7
8
TestJobLinux:
  stage: linux
  image: registry.git.rwth-aachen.de/monticore/embeddedmontiarc/applications/gans/mnist-infogan/gans_mxnet:latest
Ahmed Diab's avatar
Ahmed Diab committed
9
10

  before_script:
11
12
13
14
15
16
17
18
  - 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
  - eval $(ssh-agent -s)
  - ssh-add <(echo "$GITHUB_SSH_PRIV_KEY")
  - 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

Ahmed Diab's avatar
Ahmed Diab committed
19
20
21
  - git clone git@github.com:MontiCore/EmbeddedMontiArc/tree/master/generators/EMAM2Cpp.git
  - cd EMAM2Cpp
  - mvn clean install -s settings.xml -DskipTests
Ahmed's avatar
Ahmed committed
22
  script:
Ahmed Diab's avatar
Ahmed Diab committed
23
24
25
26
27
28
29
30
31
32
33
  - rm -rf target 
  - java -jar EMAM2Cpp/target/embedded-montiarc-math-generator-0.4.0-SNAPSHOT-jar-with-dependencies.jar -m src/main/emam/ -r ba.ballTracking -o target -flag-generate-cmake
  - rm -rf build
  - mkdir build && cd build

  - echo "Building BallTracking.."
  - cmake ..
  - make

  #- chmod +x build.sh
  #- ./build.sh
Ahmed's avatar
Ahmed committed
34
  except:
Ahmed's avatar
Ahmed committed
35
36
    changes:
      - README.md
Ahmed Diab's avatar
Ahmed Diab committed
37
      - .gitignore