Commit 645f8b11 authored by Kirill Terekhov's avatar Kirill Terekhov

Add .gitlab-ci.yml

parent 174fd96f
Pipeline #118 failed with stages
in 1 second
# 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
- cmake -DCOMPILE_TESTS -DCOMPILE_EXAMPLES -DUSE_OMP -DCMAKE_CXX_FLAGS="-O0 -g" -DCMAKE_C_FLAGS="-O0 -g" ..
- make
artifacts:
paths:
- build_debug/
build_opt:
stage: build
script:
- mkdir build_opt
- cd build_opt
- cmake -DCOMPILE_TESTS -DCOMPILE_EXAMPLES -DUSE_OMP -DCMAKE_CXX_FLAGS="-Ofast -march=native" -DCMAKE_C_FLAGS="-Ofast -march=native" ..
- make
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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment