-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.travis.yml
74 lines (72 loc) · 2.04 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
matrix:
include:
- os: linux
language: android
licenses:
- android-sdk-preview-license-.+
- android-sdk-license-.+
- google-gdk-license-.+
android:
components:
- tools
- platform-tools
- build-tools-27.0.3
- android-27
- sys-img-armeabi-v7a-google_apis-25
- extra-android-m2repository
- extra-google-m2repository
- extra-google-android-support
jdk: oraclejdk8
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- libstdc++6
- fonts-droid
before_script:
- git clone https://github.com/flutter/flutter.git -b stable --depth 1
before_install:
- yes | sdkmanager "platforms;android-28"
- chmod +x deploy_script_android.sh
script:
- mv ./android/app/mock-google-services.json ./android/app/google-services.json
- "./flutter/bin/flutter build apk --debug"
- flutter/bin/flutter test test
deploy:
skip_cleanup: true
provider: script
script: ./deploy_script_android.sh
on:
branch: staging
- os: osx
osx_image: xcode11.3
language: generic
before_script:
- brew update
- brew install --HEAD usbmuxd
- brew unlink usbmuxd
- brew link usbmuxd
- brew link --overwrite python
- brew install libimobiledevice
- brew install ideviceinstaller
- brew install ios-deploy
- git clone https://github.com/flutter/flutter.git -b stable --depth 1
- chmod +x deploy_script_ios.sh
script:
- mv ./ios/Runner/MockGoogleService-Info.plist ./ios/Runner/GoogleService-Info.plist
- flutter/bin/flutter precache
- flutter/bin/flutter pub get
- sudo gem install cocoapods -v 1.7.5
- (cd ios; pod deintegrate; rm -rf Pods; rm Podfile.lock; pod install;) || true
- flutter/bin/flutter test test
- flutter/bin/flutter build ios --debug --no-codesign
deploy:
skip_cleanup: true
provider: script
script: ./deploy_script_ios.sh
on:
branch: staging
cache:
directories:
- "$HOME/.pub-cache"