-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path.travis.yml
97 lines (95 loc) · 2.77 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
# cache:
# directories:
# - '$HOME/.pub-cache'
# notifications:
# email:
# recipients:
# on_success: always
# on_failure: always
# jobs:
# include:
# - stage: deployAPK
# os: linux
# language: android
# # licenses:
# # - android-sdk-preview-license-.+
# # - android-sdk-license-.+
# # - google-gdk-license-.+
# android:
# components:
# - tools
# - platform-tools
# - build-tools-28.0.3
# - android-28
# - sys-img-armeabi-v7a-google_apis-25
# - extra-android-m2repository
# - extra-google-m2repository
# - extra-google-android-support
# jdk: oraclejdk8
# sudo: required
# env: APK_OUTPUT=build/app/outputs/apk/release/app-release.apk
# 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
# script:
# - './flutter/bin/flutter --version'
# - './flutter/bin/flutter -v build apk --target-platform android-arm --release'
# - cd build/app/outputs/apk/release
# - git config user.name "cy"
# - git config user.email "[email protected]"
# - git clone https://${GH_TOKEN}@github.com/cliclitv/app.clicli.me.git
# - cd ./app.clicli.me
# - mv ../app-release.apk ./
# - git add -A
# - git commit -m 'update release By TravisCI With Build ${TRAVIS_BUILD_NUMBER}'
# - git push -f https://${GH_TOKEN}@github.com/cliclitv/app.clicli.me.git
#deploy:
#provider: releases
# skip_cleanup: true
#api_key: $GH_TOKEN
#cleanup: false
#file: $APK_OUTPUT
#on:
#branch: master
# tags: true
# - stage: deployIPA
# os: osx
# language: generic
# osx_image: xcode10.2
# before_script:
# - brew update
# - brew install --HEAD usbmuxd
# - brew unlink usbmuxd
# - brew link usbmuxd
# - brew install --HEAD libimobiledevice
# - brew install ideviceinstaller
# - brew install ios-deploy
# - git clone https://github.com/flutter/flutter.git -b stable --depth 1
# script:
# - ./flutter/bin/flutter -v build ios --no-codesign
# before_deploy:
# - pushd build/ios/iphoneos
# - mkdir Payload
# - cd Payload
# - ln -s ../Runner.app
# - cd ..
# - zip -r app.ipa Payload
# - popd
# deploy:
# provider: releases
# # api_key:
# # secure: #your api key will be here
# file: build/ios/iphoneos/app.ipa
# # skip_cleanup: true #important or your built app would be deleted
# cleanup: false
# on:
# tags: true