.gitlab-ci.yml 1.55 KB
Newer Older
Alexander David Hellwig's avatar
Alexander David Hellwig committed
1
stages:
Evgeny Kusmenko's avatar
Evgeny Kusmenko committed
2
- windows
Alexander David Hellwig's avatar
Alexander David Hellwig committed
3
- linux
4
- integration
vonWenckstern's avatar
vonWenckstern committed
5

Alexander David Hellwig's avatar
Alexander David Hellwig committed
6 7 8 9 10
masterJobLinux:
  stage: linux
  image: maven:3-jdk-8
  script:
  - mvn -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -B  clean deploy --settings settings.xml
11
  - cat target/site/jacoco/index.html
Evgeny Kusmenko's avatar
Evgeny Kusmenko committed
12
  - mvn package sonar:sonar -s settings.xml
Alexander David Hellwig's avatar
Alexander David Hellwig committed
13 14 15
  only:
  - master

Svetlana Pavlitskaya's avatar
Svetlana Pavlitskaya committed
16 17 18 19 20 21
masterJobWindows:
  stage: windows
  script:
  - mvn -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -B  clean install --settings settings.xml
  tags:
  - Windows10
Alexander David Hellwig's avatar
Alexander David Hellwig committed
22 23 24 25

BranchJobLinux:
  stage: linux
  image: maven:3-jdk-8
26 27 28
  artifacts:
    paths:
    - target/generated-sources-cmake/
Alexander David Hellwig's avatar
Alexander David Hellwig committed
29 30
  script:
  - mvn -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -B  clean install --settings settings.xml
31
  - cat target/site/jacoco/index.html
Alexander David Hellwig's avatar
Alexander David Hellwig committed
32
  except:
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
  - master

IntegrationJob:
  stage: integration
  image: ros:kinetic
  dependencies:
    - BranchJobLinux
  except:
  - master
  script:
  - apt-get update
  - apt-get install -y openjdk-8-jdk maven wget unzip
  - apt-get install -y g++
  - apt-get install -y libopenblas-dev libhdf5-serial-dev
  - export PATH="/usr/lib/x86_64-linux-gnu/:${PATH}"
  - wget -O /root/armadillo.zip -q --show-progress "https://rwth-aachen.sciebo.de/s/igDWzLpdO5zYHBj/download?path=%2Fubuntu%2F18.10.24-armadillo-linux&files=armadillo-8.500.1-linux.zip"
  - unzip /root/armadillo.zip -d /root/
  - export Armadillo_HOME=/root/armadillo-8.500.1-linux
  - source /opt/ros/kinetic/setup.bash
  - ./src/test/resources/TargetCompilation.sh