forked from ayvazj/flutter_lwa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
52 lines (51 loc) · 1.88 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
matrix:
include:
- language: android
sudo: false
jdk: oraclejdk8
cache:
directories:
- $HOME/.pub-cache
os:
- linux
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_install:
- echo yes | sdkmanager "tools" >/dev/null
- echo yes | sdkmanager "platform-tools" >/dev/null
- echo yes | sdkmanager "build-tools;28.0.3" >/dev/null
- echo yes | sdkmanager "platforms;android-26" >/dev/null
- echo yes | sdkmanager "platforms;android-28" >/dev/null
- echo y | sdkmanager "extras;android;m2repository" >/dev/null
- echo y | sdkmanager "extras;google;m2repository" >/dev/null
- sdkmanager --list
install:
- git clone https://github.com/flutter/flutter.git -b stable --depth 1
- ./flutter/bin/flutter doctor -v
- gem install coveralls-lcov
script:
- $TRAVIS_BUILD_DIR/flutter/bin/flutter test --coverage $TRAVIS_BUILD_DIR/test/*
- cd $TRAVIS_BUILD_DIR/example
- $TRAVIS_BUILD_DIR/flutter/bin/flutter -v build apk
after_success:
- cd $TRAVIS_BUILD_DIR
- coveralls-lcov $TRAVIS_BUILD_DIR/coverage/lcov.info
- language: objective-c
os: osx
osx_image: xcode11.1
before_install:
- cd example
- git clone https://github.com/flutter/flutter.git -b stable --depth 1
- ./flutter/bin/flutter doctor -v
before_script:
- ./flutter/bin/flutter packages pub cache repair
- ./flutter/bin/flutter packages get
script:
- ls -la
- ./flutter/bin/flutter -v build ios --no-codesign