Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit 956ca82

Browse files
committed
add travis
1 parent ed5c17c commit 956ca82

File tree

2 files changed

+69
-4
lines changed

2 files changed

+69
-4
lines changed

.travis.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
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

scripts/cli.dart

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright 2017 The Chromium Authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style license that can be
3+
// found in the LICENSE file.
4+
15
import 'dart:async';
26
import 'dart:io';
37
import 'dart:convert';
@@ -147,15 +151,13 @@ class FormatCommand extends Command {
147151
class BuildCommand extends Command {
148152
BuildCommand(this.packagesDir) {
149153
argParser.addFlag('ipa', defaultsTo: Platform.isMacOS);
150-
argParser.addFlag('apk', defaultsTo: !Platform.isMacOS);
154+
argParser.addFlag('apk');
151155
}
152156

153157
final Directory packagesDir;
154158

155159
final name = 'build';
156-
final description =
157-
'Builds all example apps. By default, an IPA is build on Mac and an APK '
158-
'on all other platforms.';
160+
final description = 'Builds all example apps.';
159161

160162
Future run() async {
161163
List<String> failingPackages = <String>[];

0 commit comments

Comments
 (0)