gecko/.gitlab-ci.yml

80 lines
1.5 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:
image: axiomteam/gecko-ci:v0.0.9
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:
- flutter format --set-exit-if-changed lib packages/dubp_rs/lib/dubp.dart
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
lint:
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: quality
audit_dependencies:
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: quality
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