mirror of
https://git.disroot.org/80486DX2-66/polonium.git
synced 2024-12-28 16:10:58 +05:30
CI: combine build
and test
stages
This commit is contained in:
parent
4e0a9ee7bb
commit
4377c89965
@ -12,16 +12,10 @@
|
|||||||
# https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Getting-Started.gitlab-ci.yml
|
# 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
|
stages: # List of stages for jobs, and their order of execution
|
||||||
- build
|
- build-and-test
|
||||||
- test
|
|
||||||
|
|
||||||
build-job: # This job runs in the build stage, which runs first.
|
build-and-test: # Build and check if the program works
|
||||||
stage: build
|
stage: build-and-test
|
||||||
script:
|
|
||||||
- make
|
|
||||||
|
|
||||||
test-job: # Check if the program works
|
|
||||||
stage: test # It only runs when *both* jobs in the test stage complete successfully.
|
|
||||||
environment: production
|
environment: production
|
||||||
script:
|
script:
|
||||||
- . ./test.sh
|
- make && . ./test.sh
|
||||||
|
Loading…
Reference in New Issue
Block a user