.gitlab-ci.yml 824 Bytes
Newer Older
Kirill Terekhov's avatar
Kirill Terekhov committed
1 2 3 4 5 6 7 8 9 10 11 12 13
# use the official gcc image, based on debian
# can use versions as well, like gcc:5.2
image: gcc

stages:
  - build
  - test

build_debug:
  stage: build
  script:
    - mkdir build_debug
    - cd build_debug
Kirill Terekhov's avatar
Kirill Terekhov committed
14
    - cmake -DCOMPILE_TESTS=ON -DUSE_OMP=ON -DCMAKE_BUILD_TYPE=Debug ..
Kirill Terekhov's avatar
Kirill Terekhov committed
15
    - make VERBOSE=1
Kirill Terekhov's avatar
Kirill Terekhov committed
16 17 18 19 20 21 22 23 24
  artifacts:
    paths:
    - build_debug/

build_opt:
  stage: build
  script:
    - mkdir build_opt
    - cd build_opt
Kirill Terekhov's avatar
Kirill Terekhov committed
25
    - cmake -DCOMPILE_TESTS=ON -DCOMPILE_EXAMPLES=ON -DUSE_OMP=ON -DCMAKE_BUILD_TYPE=Release ..
Kirill Terekhov's avatar
Kirill Terekhov committed
26
    - make VERBOSE=1
Kirill Terekhov's avatar
Kirill Terekhov committed
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
  artifacts:
    paths:
    - build_opt/

test_debug:
  stage: test
  script:
    - cd build_debug
    - ctest --output-on-failure
  dependencies:
    - build_debug

test_opt:
  stage: test
  script:
    - cd build_opt
    - ctest --output-on-failure
  dependencies:
    - build_opt