diff --git a/.gitignore b/.gitignore deleted file mode 100644 index dc372a88da2a..000000000000 --- a/.gitignore +++ /dev/null @@ -1,15 +0,0 @@ -.DS_Store -.atom/ -.idea -.packages -.pub/ -packages -pubspec.lock - -Podfile.lock -Pods/ -GeneratedPluginRegistrant.h -GeneratedPluginRegistrant.m - -GeneratedPluginRegistrant.java - diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000000..76242402e85d --- /dev/null +++ b/.travis.yml @@ -0,0 +1,63 @@ +matrix: + include: + - os: linux + language: android + licenses: + - 'android-sdk-preview-license-.+' + - 'android-sdk-license-.+' + - 'google-gdk-license-.+' + android: + components: + - tools + - platform-tools + - build-tools-25.0.3 + - android-25 + - sys-img-armeabi-v7a-google_apis-25 + - extra-android-m2repository + - extra-google-m2repository + - extra-google-android-support + jdk: oraclejdk8 + sudo: false + addons: + apt: + # Flutter depends on /usr/lib/x86_64-linux-gnu/libstdc++.so.6 version GLIBCXX_3.4.18 + sources: + - ubuntu-toolchain-r-test # if we don't specify this, the libstdc++6 we get is the wrong version + packages: + - libstdc++6 + - fonts-droid + before_script: + - wget http://services.gradle.org/distributions/gradle-3.5-bin.zip + - unzip -qq gradle-3.5-bin.zip + - export GRADLE_HOME=$PWD/gradle-3.5 + - export PATH=$GRADLE_HOME/bin:$PATH + - gradle -v + - android list targets + - echo no | android create avd --force -n test -t android-25 --abi armeabi-v7a --tag google_apis + - git clone https://github.com/flutter/flutter.git --depth 1 + - ./flutter/bin/flutter doctor + - export PATH=`pwd`/flutter/bin:`pwd`/flutter/bin/cache/dart-sdk/bin:$PATH + - (cd scripts; ./flutter/bin/cache/dart-sdk/bin/pub get) + script: + - dart scripts/cli.dart format + - dart scripts/cli.dart test + - dart scripts/cli.dart build --apk + - os: osx + language: generic + osx_image: xcode8.3 + before_script: + - pip install six + - brew update + - brew install --HEAD libimobiledevice + - brew install ideviceinstaller + - brew install ios-deploy + - git clone https://github.com/flutter/flutter.git --depth 1 + - ./flutter/bin/flutter doctor + - export PATH=`pwd`/flutter/bin:`pwd`/flutter/bin/cache/dart-sdk/bin:$PATH + - (cd scripts; ./flutter/bin/cache/dart-sdk/bin/pub get) + script: + - dart scripts/cli.dart build --ipa + +cache: + directories: + - $HOME/.pub-cache diff --git a/scripts/cli.dart b/scripts/cli.dart index 1dce373a02fd..26f15913f734 100644 --- a/scripts/cli.dart +++ b/scripts/cli.dart @@ -1,3 +1,7 @@ +// Copyright 2017 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + import 'dart:async'; import 'dart:io'; import 'dart:convert'; @@ -147,15 +151,13 @@ class FormatCommand extends Command { class BuildCommand extends Command { BuildCommand(this.packagesDir) { argParser.addFlag('ipa', defaultsTo: Platform.isMacOS); - argParser.addFlag('apk', defaultsTo: !Platform.isMacOS); + argParser.addFlag('apk'); } final Directory packagesDir; final name = 'build'; - final description = - 'Builds all example apps. By default, an IPA is build on Mac and an APK ' - 'on all other platforms.'; + final description = 'Builds all example apps.'; Future run() async { List failingPackages = [];