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-06-14 19:35:29 +02:00
|
|
|
image: axiomteam/gecko-ci:v0.0.9
|
2021-02-25 04:22:55 +01:00
|
|
|
tags:
|
2021-05-11 15:41:40 +02:00
|
|
|
- redshift
|
2021-02-25 04:22:55 +01:00
|
|
|
|
|
|
|
format:
|
|
|
|
extends: .env
|
2021-02-26 02:20:56 +01:00
|
|
|
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
|
2021-02-26 02:20:56 +01:00
|
|
|
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:
|
2021-05-11 15:41:40 +02:00
|
|
|
- redshift
|
2021-12-19 14:55:47 +01:00
|
|
|
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
|