-
Notifications
You must be signed in to change notification settings - Fork 55
/
.travis.yml
30 lines (30 loc) · 1.67 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
matrix:
fast_finish: true
allow_failures:
-
env: JOB=APK
-
env: JOB=IPA
include:
-
env: JOB=TEST
language: dart
dist: xenial
addons: {apt: {packages: [lib32stdc++6]}}
install: ['git clone https://github.com/flutter/flutter.git -b stable', './flutter/bin/flutter doctor', 'gem install coveralls-lcov']
script: ['./flutter/bin/flutter packages pub get --packages-dir', './flutter/bin/flutter test --coverage']
after_success: ['coveralls-lcov coverage/lcov.info']
-
env: JOB=APK
os: linux
language: android
licenses: [android-sdk-preview-license-.+, android-sdk-license-.+, google-gdk-license-.+]
android: {components: [tools, platform-tools, build-tools-29.0.3, android-29, sys-img-armeabi-v7a-google_apis-29, 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]}}
before_script: ['wget https://services.gradle.org/distributions/gradle-5.6-bin.zip', 'unzip -qq gradle-5.6-bin.zip', 'export GRADLE_HOME=$PWD/gradle-5.6', 'export PATH=$GRADLE_HOME/bin:$PATH', 'git clone https://github.com/flutter/flutter.git -b stable', 'yes | $ANDROID_HOME/tools/bin/sdkmanager "platforms;android-27"', 'yes | $ANDROID_HOME/tools/bin/sdkmanager "build-tools;27.0.3"']
script: ['cd example && ../flutter/bin/flutter -v build apk --split-per-abi']
cache:
directories:
- $HOME/.pub-cache