Improve CI/CD, build and run tests

This commit is contained in:
serkixenos 2022-02-20 23:08:43 -04:00
parent 076bc96721
commit 44d285d91f

View file

@ -2,9 +2,39 @@ include:
- template: Jobs/Code-Quality.gitlab-ci.yml
stages:
- build
- test
build:
stage: build
script:
- rm -rf .git/modules/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
test:
stage: test
dependencies:
- build
script:
- ./build/tests/all_test
tags:
- builder
trigger_build_peerplays:
stage: test
dependencies:
- test
script:
- "curl -X POST -F token=$CI_JOB_TOKEN -F ref=$REF_NAME https://gitlab.com/api/v4/projects/10735589/trigger/pipeline"