Very clean build on Gitlab

This commit is contained in:
Srdjan Obucina 2020-03-30 21:32:13 +02:00
parent fef3b298d8
commit 19ec668fff

View file

@ -8,16 +8,20 @@ stages:
build: build:
stage: build stage: build
script: script:
- rm -rf .git/modules/* ./docs ./libraries/fc
- git submodule sync - git submodule sync
- git submodule update --init --recursive - git submodule update --init --recursive
- cmake . - rm -rf build
- mkdir build
- cd build
- cmake ..
- make -j$(nproc) - make -j$(nproc)
artifacts: artifacts:
untracked: true untracked: true
paths: paths:
- libraries/ - build/libraries/
- programs/ - build/programs/
- tests/ - build/tests/
tags: tags:
- builder - builder
@ -26,9 +30,9 @@ test:
dependencies: dependencies:
- build - build
script: script:
- ./tests/betting_test --log_level=message - ./build/tests/betting_test --log_level=message
- ./tests/chain_test --log_level=message - ./build/tests/chain_test --log_level=message
- ./tests/cli_test --log_level=message - ./build/tests/cli_test --log_level=message
tags: tags:
- builder - builder