1
0
mirror of https://git.disroot.org/80486DX2-66/polonium.git synced 2024-09-19 02:25:33 +05:30

CI: combine build and test stages

This commit is contained in:
Intel A80486DX2-66 2024-07-07 01:46:32 +03:00
parent 4e0a9ee7bb
commit 4377c89965
Signed by: 80486DX2-66
GPG Key ID: 83631EF27054609B

View File

@ -12,16 +12,10 @@
# https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Getting-Started.gitlab-ci.yml
stages: # List of stages for jobs, and their order of execution
- build
- test
- build-and-test
build-job: # This job runs in the build stage, which runs first.
stage: build
script:
- make
test-job: # Check if the program works
stage: test # It only runs when *both* jobs in the test stage complete successfully.
build-and-test: # Build and check if the program works
stage: build-and-test
environment: production
script:
- . ./test.sh
- make && . ./test.sh