gecko/.gitlab-ci.yml

61 lines
1.1 KiB
YAML
Raw Normal View History

2021-02-25 04:22:55 +01:00
stages:
- format
- build_and_test
- quality
2021-02-25 21:44:59 +01:00
- package
2021-02-25 04:22:55 +01:00
.env:
2022-09-05 09:42:44 +02:00
image: axiomteam/gecko-ci:v0.0.11
2021-02-25 04:22:55 +01:00
tags:
- redshift
2021-02-25 04:22:55 +01:00
format:
extends: .env
rules:
- if: $CI_COMMIT_REF_NAME =~ /^wip*$/
when: manual
- if: $CI_COMMIT_TAG || $CI_MERGE_REQUEST_ID
- when: manual
2021-02-25 04:22:55 +01:00
stage: format
2022-06-14 22:06:34 +02:00
script:
2022-06-14 22:08:52 +02:00
- flutter format --set-exit-if-changed lib
2021-04-30 22:51:52 +02:00
2021-02-25 04:22:55 +01:00
build_and_test:
extends: .env
rules:
- if: $CI_COMMIT_REF_NAME =~ /^wip*$/
when: manual
- if: $CI_COMMIT_TAG || $CI_MERGE_REQUEST_ID
- when: manual
2021-02-25 04:22:55 +01:00
stage: build_and_test
tags:
- redshift
script:
2021-02-25 04:22:55 +01:00
- flutter analyze
2021-02-25 21:44:59 +01:00
releases:test:
extends: .env
stage: package
allow_failure: true
rules:
- if: $CI_COMMIT_TAG
when: never
- when: manual
script:
- bash "release/android/build-apk.sh" "$(date +%Y%m%d).$(date +%H%M).$(date +%S)+0"
artifacts:
paths: &releases_artifacts
- work/bin/
expire_in: 72h
releases:x64:
extends: .env
stage: package
rules:
- if: $CI_COMMIT_TAG
script:
- bash "release/android/build-apk.sh" "${CI_COMMIT_TAG#v}"
artifacts:
paths: *releases_artifacts
expire_in: 1 mos