forked from sarbagyastha/youtube_player_flutter
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
108 lines (95 loc) · 2.97 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
matrix:
# This causes the build to complete immediately upon first failure or once required jobs are green.
fast_finish: true
# Not waiting for APK build to finish.
allow_failures:
- env: JOB=APK
- env: JOB=IPA
include:
- env: JOB=PR
os: linux
sudo: false
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- libstdc++6
- lib32stdc++6
#- fonts-droid
before_script:
- git clone https://github.com/flutter/flutter.git -b stable --depth 1
- export PATH=`pwd`/flutter/bin:`pwd`/flutter/bin/cache/dart-sdk/bin:$PATH
script:
- flutter doctor -v
#- flutter test --coverage --coverage-path=lcov.info
#after_success:
#- bash <(curl -s https://codecov.io/bash)
# Building an IPA.
- env: JOB=IPA
os: osx
language: generic
osx_image: xcode11
before_script:
- pip3 install six
- brew update
- brew install --HEAD usbmuxd
- brew unlink usbmuxd
- brew link usbmuxd
- brew unlink python@2
- brew install --HEAD libimobiledevice
- brew install ideviceinstaller
- brew install ios-deploy
- git clone https://github.com/flutter/flutter.git
- export PATH=`pwd`/flutter/bin:`pwd`/flutter/bin/cache/dart-sdk/bin:$PATH
- cd example
- flutter doctor -v
script:
- flutter -v build ios --no-codesign
# Building an APK.
- env: JOB=APK
os: linux
language: android
licenses:
- 'android-sdk-preview-license-.+'
- 'android-sdk-license-.+'
- 'google-gdk-license-.+'
android:
components:
- tools
- platform-tools
- build-tools-29.0.2
- build-tools-28.0.3
- build-tools-27.0.3
- android-29
- android-28
- android-27
- sys-img-armeabi-v7a-google_apis-28
- 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
- lib32stdc++6
#- fonts-droid
before_script:
- wget https://services.gradle.org/distributions/gradle-5.6.2-bin.zip
- unzip -qq gradle-5.6.2-bin.zip
- export GRADLE_HOME=$PWD/gradle-5.6.2
- export PATH=$GRADLE_HOME/bin:$PATH
- git clone https://github.com/flutter/flutter.git
- export PATH=`pwd`/flutter/bin:`pwd`/flutter/bin/cache/dart-sdk/bin:$PATH
- cd example
- flutter doctor -v
script:
- flutter -v build apk
cache:
directories:
- $HOME/.pub-cache