升级CI镜像

This commit is contained in:
v7lin
2019-12-12 23:52:02 +08:00
parent b65b2be51d
commit 9a9a2971cb
2 changed files with 11 additions and 11 deletions

18
.drone.yml Normal file → Executable file
View File

@ -3,7 +3,7 @@ name: default
steps: steps:
- name: prepare - name: prepare
image: v7lin/flutter:1.9.1-hotfix.6-stable image: v7lin/flutter:1.12.13-hotfix.5-stable
volumes: volumes:
- name: pub-cache - name: pub-cache
path: /opt/flutter/.pub-cache path: /opt/flutter/.pub-cache
@ -11,7 +11,7 @@ steps:
- flutter packages get - flutter packages get
#- name: build_runner #- name: build_runner
# image: v7lin/flutter:1.9.1-hotfix.6-stable # image: v7lin/flutter:1.12.13-hotfix.5-stable
# volumes: # volumes:
# - name: pub-cache # - name: pub-cache
# path: /opt/flutter/.pub-cache # path: /opt/flutter/.pub-cache
@ -19,7 +19,7 @@ steps:
# - flutter packages pub run build_runner build --delete-conflicting-outputs # - flutter packages pub run build_runner build --delete-conflicting-outputs
#- name: android-check #- name: android-check
# image: v7lin/flutter:1.9.1-hotfix.6-stable # image: v7lin/flutter:1.12.13-hotfix.5-stable
# volumes: # volumes:
# - name: pub-cache # - name: pub-cache
# path: /opt/flutter/.pub-cache # path: /opt/flutter/.pub-cache
@ -37,7 +37,7 @@ steps:
# - clang-format -style=file -i src/Classes/*.h src/Classes/*.m # - clang-format -style=file -i src/Classes/*.h src/Classes/*.m
- name: format - name: format
image: v7lin/flutter:1.9.1-hotfix.6-stable image: v7lin/flutter:1.12.13-hotfix.5-stable
volumes: volumes:
- name: pub-cache - name: pub-cache
path: /opt/flutter/.pub-cache path: /opt/flutter/.pub-cache
@ -45,7 +45,7 @@ steps:
- flutter format --dry-run --set-exit-if-changed . - flutter format --dry-run --set-exit-if-changed .
- name: analyze - name: analyze
image: v7lin/flutter:1.9.1-hotfix.6-stable image: v7lin/flutter:1.12.13-hotfix.5-stable
volumes: volumes:
- name: pub-cache - name: pub-cache
path: /opt/flutter/.pub-cache path: /opt/flutter/.pub-cache
@ -53,7 +53,7 @@ steps:
- flutter analyze - flutter analyze
- name: test - name: test
image: v7lin/flutter:1.9.1-hotfix.6-stable image: v7lin/flutter:1.12.13-hotfix.5-stable
volumes: volumes:
- name: pub-cache - name: pub-cache
path: /opt/flutter/.pub-cache path: /opt/flutter/.pub-cache
@ -63,7 +63,7 @@ steps:
- flutter test - flutter test
- name: proguard - name: proguard
image: v7lin/flutter:1.9.1-hotfix.6-stable image: v7lin/flutter:1.12.13-hotfix.5-stable
volumes: volumes:
- name: pub-cache - name: pub-cache
path: /opt/flutter/.pub-cache path: /opt/flutter/.pub-cache
@ -86,7 +86,7 @@ steps:
# - pull_request # - pull_request
- name: publish-check - name: publish-check
image: v7lin/flutter:1.9.1-hotfix.6-stable image: v7lin/flutter:1.12.13-hotfix.5-stable
volumes: volumes:
- name: pub-cache - name: pub-cache
path: /opt/flutter/.pub-cache path: /opt/flutter/.pub-cache
@ -129,7 +129,7 @@ steps:
- rm $FLUTTER_HOME/credentials.json.enc - rm $FLUTTER_HOME/credentials.json.enc
- name: publish - name: publish
image: v7lin/flutter:1.9.1-hotfix.6-stable image: v7lin/flutter:1.12.13-hotfix.5-stable
volumes: volumes:
- name: pub-cache - name: pub-cache
path: /opt/flutter/.pub-cache path: /opt/flutter/.pub-cache

View File

@ -2,10 +2,10 @@ import 'package:flutter/services.dart';
import 'package:flutter_test/flutter_test.dart'; import 'package:flutter_test/flutter_test.dart';
void main() { void main() {
TestWidgetsFlutterBinding.ensureInitialized();
const MethodChannel channel = MethodChannel('v7lin.github.io/tencent_kit'); const MethodChannel channel = MethodChannel('v7lin.github.io/tencent_kit');
TestWidgetsFlutterBinding.ensureInitialized();
setUp(() { setUp(() {
channel.setMockMethodCallHandler((MethodCall methodCall) async {}); channel.setMockMethodCallHandler((MethodCall methodCall) async {});
}); });