Skip to content

Commit

Permalink
Gitlab will build Debug and Release versions
Browse files Browse the repository at this point in the history
  • Loading branch information
serkixenos authored Oct 18, 2020
1 parent 088b07d commit 7a721f8
Showing 1 changed file with 20 additions and 8 deletions.
28 changes: 20 additions & 8 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,24 @@ build:
- git submodule update --init --recursive
- rm -rf build
- mkdir build
- cd build
- cmake ..
- mkdir build/debug
- mkdir build/release
- cd build/debug
- cmake -DCMAKE_BUILD_TYPE=Debug ../..
- make -j$(nproc)
- cd ../..
- cd build/release
- cmake -DCMAKE_BUILD_TYPE=Release ../..
- make -j$(nproc)
artifacts:
untracked: true
paths:
- build/libraries/
- build/programs/
- build/tests/
- build/debug/libraries/
- build/debug/programs/
- build/debug/tests/
- build/release/libraries/
- build/release/programs/
- build/release/tests/
tags:
- builder

Expand All @@ -34,8 +43,11 @@ test:
dependencies:
- build
script:
- ./build/tests/betting_test --log_level=message
- ./build/tests/chain_test --log_level=message
- ./build/tests/cli_test --log_level=message
- ./build/debug/tests/betting_test --log_level=message
- ./build/debug/tests/chain_test --log_level=message
- ./build/debug/tests/cli_test --log_level=message
- ./build/release/tests/betting_test --log_level=message
- ./build/release/tests/chain_test --log_level=message
- ./build/release/tests/cli_test --log_level=message
tags:
- builder

0 comments on commit 7a721f8

Please sign in to comment.