.gitlab-ci.yml 527 Bytes
Newer Older
1
2
3
4
image: ubuntu:18.04

stages:
  - build
Jannick Wolters's avatar
Jannick Wolters committed
5
  - unit_tests
6
7
8

build:
  stage: build
Jannick Wolters's avatar
Jannick Wolters committed
9
10
  artifacts:
    untracked: true
11
12
13
14
15
16
17
18
  script:
    - apt-get update
    - apt-get install -y g++ cmake libopenmpi-dev libblas-dev liblapack-dev git ninja-build
    - git submodule update --init --recursive
    - cd code/build/debug
    - cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTING=True -DCMAKE_EXPORT_COMPILE_COMMANDS=True ../../
    - ninja

Jannick Wolters's avatar
Jannick Wolters committed
19
20
21
22
unit_tests:
  stage: unit_tests
  dependencies:
    - build
23
  script:
Jannick Wolters's avatar
Jannick Wolters committed
24
    - ./code/bin/unit_tests