|
| 1 | +matrix: |
| 2 | + include: |
| 3 | + - os: linux |
| 4 | + language: android |
| 5 | + licenses: |
| 6 | + - 'android-sdk-preview-license-.+' |
| 7 | + - 'android-sdk-license-.+' |
| 8 | + - 'google-gdk-license-.+' |
| 9 | + android: |
| 10 | + components: |
| 11 | + - tools |
| 12 | + - platform-tools |
| 13 | + - build-tools-25.0.3 |
| 14 | + - android-25 |
| 15 | + - sys-img-armeabi-v7a-google_apis-25 |
| 16 | + - extra-android-m2repository |
| 17 | + - extra-google-m2repository |
| 18 | + - extra-google-android-support |
| 19 | + jdk: oraclejdk8 |
| 20 | + sudo: false |
| 21 | + addons: |
| 22 | + apt: |
| 23 | + # Flutter depends on /usr/lib/x86_64-linux-gnu/libstdc++.so.6 version GLIBCXX_3.4.18 |
| 24 | + sources: |
| 25 | + - ubuntu-toolchain-r-test # if we don't specify this, the libstdc++6 we get is the wrong version |
| 26 | + packages: |
| 27 | + - libstdc++6 |
| 28 | + - fonts-droid |
| 29 | + before_script: |
| 30 | + - wget http://services.gradle.org/distributions/gradle-3.5-bin.zip |
| 31 | + - unzip -qq gradle-3.5-bin.zip |
| 32 | + - export GRADLE_HOME=$PWD/gradle-3.5 |
| 33 | + - export PATH=$GRADLE_HOME/bin:$PATH |
| 34 | + - gradle -v |
| 35 | + - android list targets |
| 36 | + - echo no | android create avd --force -n test -t android-25 --abi armeabi-v7a --tag google_apis |
| 37 | + - git clone https://github.com/flutter/flutter.git --depth 1 |
| 38 | + - export PATH=`pwd`/flutter/bin:$PATH |
| 39 | + - ./flutter/bin/flutter doctor |
| 40 | + script: |
| 41 | + - (cd scripts; pub get) |
| 42 | + - dart scripts/cli.dart format |
| 43 | + - dart scripts/cli.dart test |
| 44 | + - dart scripts/cli.dart build --apk |
| 45 | + - os: osx |
| 46 | + language: generic |
| 47 | + osx_image: xcode8.3 |
| 48 | + before_script: |
| 49 | + - pip install six |
| 50 | + - brew update |
| 51 | + - brew install --HEAD libimobiledevice |
| 52 | + - brew install ideviceinstaller |
| 53 | + - brew install ios-deploy |
| 54 | + - git clone https://github.com/flutter/flutter.git --depth 1 |
| 55 | + - export PATH=`pwd`/flutter/bin:$PATH |
| 56 | + - ./flutter/bin/flutter doctor |
| 57 | + script: |
| 58 | + - (cd scripts; pub get) |
| 59 | + - dart scripts/cli.dart build --ipa |
| 60 | + |
| 61 | +cache: |
| 62 | + directories: |
| 63 | + - $HOME/.pub-cache |
0 commit comments