CI: pass build artifacts to another stage
Avoid to redo some tasks (save git untracked files e use them). See #46.
This commit is contained in:
parent
057610e982
commit
66668676fc
1 changed files with 8 additions and 2 deletions
|
@ -12,6 +12,11 @@ stages:
|
||||||
##
|
##
|
||||||
build:
|
build:
|
||||||
stage: build
|
stage: build
|
||||||
|
artifacts:
|
||||||
|
name: builded
|
||||||
|
untracked: true
|
||||||
|
expire_in: 3h30min
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- meson . _build
|
- meson . _build
|
||||||
- ninja -C _build
|
- ninja -C _build
|
||||||
|
@ -25,9 +30,10 @@ build:
|
||||||
##
|
##
|
||||||
test:
|
test:
|
||||||
stage: test
|
stage: test
|
||||||
|
dependencies:
|
||||||
|
- build
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- meson . _build
|
|
||||||
- ninja -C _build
|
|
||||||
- |
|
- |
|
||||||
if [[ -n "${CI_COMMIT_TAG}" ]]; then
|
if [[ -n "${CI_COMMIT_TAG}" ]]; then
|
||||||
echo "== Distro Test =="
|
echo "== Distro Test =="
|
||||||
|
|
Loading…
Add table
Reference in a new issue