gitlabci: Add review apps.
This makes it able to show a link pointing to the bundle in Merge Requests.
This commit is contained in:
parent
65949c5af5
commit
777a2102f8
@ -1,6 +1,7 @@
|
|||||||
stages:
|
stages:
|
||||||
- test
|
- test
|
||||||
- lint
|
- lint
|
||||||
|
- review
|
||||||
|
|
||||||
.cargo_test_template: &cargo_test
|
.cargo_test_template: &cargo_test
|
||||||
stage: test
|
stage: test
|
||||||
@ -83,6 +84,34 @@ flatpak:
|
|||||||
- .flatpak-builder/cache/
|
- .flatpak-builder/cache/
|
||||||
- target/
|
- target/
|
||||||
|
|
||||||
|
review:
|
||||||
|
stage: review
|
||||||
|
dependencies:
|
||||||
|
- flatpak
|
||||||
|
script:
|
||||||
|
- echo "Generating flatpak deployment"
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- hammond-dev.flatpak
|
||||||
|
expire_in: 30 days
|
||||||
|
environment:
|
||||||
|
name: review/$CI_COMMIT_REF_NAME
|
||||||
|
url: https://gitlab.gnome.org/$CI_PROJECT_PATH/-/jobs/$CI_JOB_ID/artifacts/raw/${BUNDLE}
|
||||||
|
on_stop: stop_review
|
||||||
|
except:
|
||||||
|
- master@World/hammond
|
||||||
|
|
||||||
|
stop_review:
|
||||||
|
stage: review
|
||||||
|
script:
|
||||||
|
- echo "Stopping flatpak deployment"
|
||||||
|
when: manual
|
||||||
|
environment:
|
||||||
|
name: review/$CI_COMMIT_REF_NAME
|
||||||
|
action: stop
|
||||||
|
except:
|
||||||
|
- master@World/hammond
|
||||||
|
|
||||||
# Configure and run rustfmt on nightly
|
# Configure and run rustfmt on nightly
|
||||||
# Exits and builds fails if on bad format
|
# Exits and builds fails if on bad format
|
||||||
rustfmt:
|
rustfmt:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user