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
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user