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

Commit 688e405

Browse files
authored
Add travis (#43)
* Added Travis * update to use flutter_plugin_tools
1 parent a591597 commit 688e405

File tree

2 files changed

+84
-0
lines changed

2 files changed

+84
-0
lines changed

.travis.yml

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

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Flutter plugins
22

3+
[![Build Status](https://travis-ci.org/flutter/plugins.svg?branch=master)](https://travis-ci.org/flutter/plugins)
4+
35
This repo is a companion repo to the main [flutter
46
repo](https://github.com/flutter/flutter). It contains the source code for
57
Flutter first-party plugins. Check the `packages` directory for all plugins.

0 commit comments

Comments
 (0)