Update GitLab CI file, more manual build options

This commit is contained in:
serkixenos 2022-05-16 20:46:40 +02:00
parent 8f32e4cdb5
commit 3152d47eea

View file

@ -29,6 +29,18 @@ build:
tags:
- builder
test:
stage: test
dependencies:
- build
script:
- ./build/libraries/fc/tests/all_tests
- ./build/tests/betting_test --log_level=message
- ./build/tests/chain_test --log_level=message
- ./build/tests/cli_test --log_level=message
tags:
- builder
dockerize:
stage: build
variables:
@ -41,13 +53,37 @@ dockerize:
- docker push $IMAGE
tags:
- builder
when:
manual
timeout:
3h
build-testnet:
stage: build
script:
- rm -rf .git/modules/docs .git/modules/libraries/fc ./docs ./libraries/fc
- git submodule sync
- git submodule update --init --recursive
- rm -rf build
- mkdir build
- cd build
- cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_PEERPLAYS_TESTNET=1 ..
- make -j$(nproc)
artifacts:
untracked: true
paths:
- build/libraries/
- build/programs/
- build/tests/
tags:
- builder
when: manual
timeout: 3h
test:
test-testnet:
stage: test
dependencies:
- build
- build-testnet
script:
- ./build/libraries/fc/tests/all_tests
- ./build/tests/betting_test --log_level=message
@ -55,3 +91,7 @@ test:
- ./build/tests/cli_test --log_level=message
tags:
- builder
when:
manual
timeout:
1h