peerplays-fc/.gitlab-ci.yml
2022-03-04 22:20:05 +00:00

44 lines
No EOL
827 B
YAML

include:
- template: Jobs/Code-Quality.gitlab-ci.yml
stages:
- build
- test
- trigger_build_peerplays
build:
stage: build
script:
- rm -rf .git/modules/vendor ./vendor
- git submodule sync
- git submodule update --init --recursive
- rm -rf build
- mkdir build
- cd build
- cmake -DCMAKE_BUILD_TYPE=Release ..
- make -j$(nproc)
artifacts:
untracked: true
paths:
- build/tests/
tags:
- builder-fc
test:
stage: test
dependencies:
- build
script:
- ./build/tests/all_test
tags:
- builder-fc
when:
- manual
trigger_build_peerplays:
stage: trigger_build_peerplays
dependencies:
- test
script:
- "curl -X POST -F token=$CI_JOB_TOKEN -F ref=$REF_NAME https://gitlab.com/api/v4/projects/10735589/trigger/pipeline"