From d8bd752ef62d5a771ff83ca24dce380b314bd2be Mon Sep 17 00:00:00 2001 From: longer Date: Mon, 23 Aug 2021 16:49:26 +0800 Subject: [PATCH] feat:ci travis --- .travis.yaml | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++++ pubspec.lock | 6 ++--- 2 files changed, 65 insertions(+), 3 deletions(-) create mode 100644 .travis.yaml diff --git a/.travis.yaml b/.travis.yaml new file mode 100644 index 0000000..ec63828 --- /dev/null +++ b/.travis.yaml @@ -0,0 +1,62 @@ +language: dart +script: + - dart dart_sample.dart + + +os: + - osx +install: + - git clone https://github.com/flutter/flutter.git + - export PATH="$PATH:`pwd`/flutter/bin" +script: + - flutter doctor && flutter test + + + + +matrix: + include: + # 声明 Android 运行环境 + - os: linux + language: android + dist: trusty + licenses: + - 'android-sdk-preview-license-.+' + - 'android-sdk-license-.+' + - 'google-gdk-license-.+' + # 声明需要安装的 Android 组件 + android: + components: + - tools + - platform-tools + - build-tools-28.0.3 + - android-28 + - sys-img-armeabi-v7a-google_apis-28 + - extra-android-m2repository + - extra-google-m2repository + - extra-google-android-support + jdk: oraclejdk8 + sudo: false + addons: + apt: + sources: + - ubuntu-toolchain-r-test + packages: + - libstdc++6 + - fonts-droid + # 确保 sdkmanager 是最新的 + before_script: + - yes | sdkmanager --update + script: + - yes | flutter doctor --android-licenses + - flutter doctor && flutter -v build apk + + # 声明 iOS 的运行环境 + - os: osx + language: objective-c + osx_image: xcode10.2 + script: + - flutter doctor && flutter -v build ios --no-codesign +install: + - git clone https://github.com/flutter/flutter.git + - export PATH="$PATH:`pwd`/flutter/bin" \ No newline at end of file diff --git a/pubspec.lock b/pubspec.lock index 465e899..11a7cbe 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -7,7 +7,7 @@ packages: name: async url: "https://pub.flutter-io.cn" source: hosted - version: "2.5.0" + version: "2.6.1" boolean_selector: dependency: transitive description: @@ -106,7 +106,7 @@ packages: name: source_span url: "https://pub.flutter-io.cn" source: hosted - version: "1.8.0" + version: "1.8.1" stack_trace: dependency: transitive description: @@ -141,7 +141,7 @@ packages: name: test_api url: "https://pub.flutter-io.cn" source: hosted - version: "0.2.19" + version: "0.3.0" typed_data: dependency: transitive description: