-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
91 lines (91 loc) · 6.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
branches:
only:
- master
matrix:
include:
- language: node_js
sudo: required
dist: trusty
node_js:
- 8.9.4
addons:
apt:
sources:
- google-chrome
packages:
- google-chrome-stable
- lib32stdc++6
- lib32z1
install:
- npm install
before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
script:
- npm run lint
- npm run test
- os: linux
sudo: required
language: android
android:
components:
- tools
- platform-tools
- build-tools-26.0.2
- android-25
- extra-google-google_play_services
- extra-google-m2repository
- extra-android-m2repository
licenses:
- android-sdk-preview-license-.+
- android-sdk-license-.+
- google-gdk-license-.+
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -f $HOME/.gradle/caches/transforms-1/transforms-1.lock
- rm -rf $HOME/.gradle/caches/3.5/fileHashes/
- rm -rf $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- "$HOME/.gradle/caches/"
- "$HOME/.gradle/wrapper/"
before_install:
- export LANG=en_US.UTF-8
- nvm install 8.9.0
- npm install ionic cordova -g
- yes | sdkmanager "platforms;android-27"
- cd $TRAVIS_BUILD_DIR
- wget -c https://raw.githubusercontent.com/Pgyer/TravisFile/master/pgyer_upload.sh -O pgyer_upload.sh
- chmod +x pgyer_upload.sh
- openssl aes-256-cbc -K $encrypted_fd699ad937e2_key -iv $encrypted_fd699ad937e2_iv
-in ./sh/release/certificates.tar.enc -out ./sh/release/certificates.tar -d
- tar xvf ./sh/release/certificates.tar -C ./sh/release/certificates
before_script:
- chmod 755 ./sh/*.sh
- chmod 777 ./config.xml
- chmod +x ./hooks/before_build/010_update_config.js
script:
- npm install
- "./sh/build-android.sh"
after_script:
- cp $TRAVIS_BUILD_DIR/sh/release/certificates/tomatoAndroid.jks $HOME
- cd platforms/android/app/build/outputs/apk/release/
- jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore $HOME/tomatoAndroid.jks
-storepass $storepass -keypass $keypass app-release-unsigned.apk tomatoAndroid
- jarsigner -verify app-release-unsigned.apk
- "${ANDROID_HOME}/build-tools/26.0.2/zipalign -v 4 app-release-unsigned.apk app-release-signed.apk"
- cd ${TRAVIS_BUILD_DIR}
- "./sh/package-android.sh"
- set -e
- $TRAVIS_BUILD_DIR/pgyer_upload.sh "${TRAVIS_BUILD_DIR}/output/tomato-ionic-release-signed.apk" ${PGYER_APIKEY}
notifications:
email:
env:
global:
- APP_NAME="番茄棒"
- secure: vpbuGKJ8nglvA8wsxCeBwPQL3Z2dtoUWfGuEky6wfyK+I64Pmb4WWicJ2zUfMrFWQpb5BRelIy5u0LcjogLBEL+Fw6JWZWEGcmylwq6HdFk493aOwSjz7xihxh/DIK3ujz//BDVyCq/AjROGJGGgwicKJj5UlZ4B1Jon3gEUb3rd+SO/MiVWhNRC0yukvcVQk30f5zQPcnZUskAuLPIz06zBAYvnrfg/e6x8ajMSc2Chd5LN/74AlXB/ztz7IozZ0IOHpD0jXNPS/Kkn3bOGHTQ1s5CkyE9s+Z6MV6Eu/CyLssbalKoDBNw31LmQyFG6Rh/6xZrx1wwQc39UQDXIGu7z+1AyWnGqvaymZ1y0ffBohdQSwQlKDBYJ8LyCqL/c0mSrf+mAg+pe4mWg+DyO+rKLqlYtNdscWHOG97BpnCTeZ6ODDQY8/sN/5eJ8reoNJwV+ZttHbzh1x7T9u21aMhh6bbm5EBUQRWX3yMimrrX3YsLgIHQ7E1eWP2tc0rbrQ5nh14kpbSYsf81Yjn5rsno4H/a2RUeqroxtnLQ9hmLoJGFJLaFSRIoPYwwDL/42Wjt8s7/X8+6lwtemyZojE7rASn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