This commit is contained in:
v7lin
2019-05-17 10:49:26 +08:00
parent c92aa6136d
commit 4cf758036c
2 changed files with 26 additions and 8 deletions

View File

@ -3,7 +3,7 @@ name: default
steps:
- name: prepare
image: v7lin/flutter:1.2.1-stable
image: v7lin/flutter:1.5.4-hotfix.2-stable
volumes:
- name: pub-cache
path: /opt/flutter/.pub-cache
@ -11,7 +11,7 @@ steps:
- flutter packages get
#- name: build_runner
# image: v7lin/flutter:1.2.1-stable
# image: v7lin/flutter:1.5.4-hotfix.2-stable
# volumes:
# - name: pub-cache
# path: /opt/flutter/.pub-cache
@ -19,7 +19,7 @@ steps:
# - flutter packages pub run build_runner build
- name: format
image: v7lin/flutter:1.2.1-stable
image: v7lin/flutter:1.5.4-hotfix.2-stable
volumes:
- name: pub-cache
path: /opt/flutter/.pub-cache
@ -27,7 +27,7 @@ steps:
- flutter format --dry-run --set-exit-if-changed .
- name: analyze
image: v7lin/flutter:1.2.1-stable
image: v7lin/flutter:1.5.4-hotfix.2-stable
volumes:
- name: pub-cache
path: /opt/flutter/.pub-cache
@ -35,17 +35,34 @@ steps:
- flutter analyze
- name: test
image: v7lin/flutter:1.2.1-stable
image: v7lin/flutter:1.5.4-hotfix.2-stable
volumes:
- name: pub-cache
path: /opt/flutter/.pub-cache
commands:
- flutter test
- pushd example/
- flutter test --coverage
- cd example/
- flutter test
- name: proguard
image: v7lin/flutter:1.5.4-hotfix.2-stable
volumes:
- name: pub-cache
path: /opt/flutter/.pub-cache
commands:
- cd example/
- flutter build apk
- name: coverage
image: plugins/codecov:2.0.3
settings:
token:
from_secret: CODECOV_TOKEN
files:
- ./coverage/lcov.info
- name: publish-check
image: v7lin/flutter:1.2.1-stable
image: v7lin/flutter:1.5.4-hotfix.2-stable
volumes:
- name: pub-cache
path: /opt/flutter/.pub-cache

View File

@ -1,6 +1,7 @@
# fake_tencent
[![Build Status](https://cloud.drone.io/api/badges/v7lin/fake_tencent/status.svg)](https://cloud.drone.io/v7lin/fake_tencent)
[![Codecov](https://codecov.io/gh/v7lin/fake_tencent/branch/master/graph/badge.svg)](https://codecov.io/gh/v7lin/fake_tencent)
[![GitHub Tag](https://img.shields.io/github/tag/v7lin/fake_tencent.svg)](https://github.com/v7lin/fake_tencent/releases)
[![Pub Package](https://img.shields.io/pub/v/fake_tencent.svg)](https://pub.dartlang.org/packages/fake_tencent)
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://github.com/v7lin/fake_tencent/blob/master/LICENSE)