-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.travis.yml
120 lines (120 loc) · 8.8 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
109
110
111
112
113
114
115
116
117
118
119
120
env:
global:
- IOS_APP_NAME=Tidepool
- IOS_CODE_SIGN_IDENTITY='iPhone Distribution: Tidepool Project (75U4X84TEG)''
- IOS_PROFILE_NAME=orgtidepoolblipnotesRN_AppStore
- IOS_DEVELOPMENT_TEAM='Tidepool Project'
- secure: xryOkFcyrYb4+nCpBXEtdhB44++/GFHMU3VmITm/o60nR3Tcq0ADzGCVaH8XvqUjUJaBmo2Zu5waGz15r/wUb7Yi9aH6VQ0C74kcxlX26ZcKQjelpnz4D4l1CyYZVtesOWliqPVC32HtSGBJI5Qpez9SWRfKatNsvBX9D0e9MKNaEi33GX/jpMIhU3XoQV62r0KFiuINVXpmVB2a9VLh61zoq3BTsb6f4xlCSiRpas0Hg28Rty9PdqvGPsr+NFgm6QVEECj+doVhvQPFxOHdEf1Ptvn0/VJndVDZ4D5bmYR98/dqYCdQ3AGWAg7ASLM3rAqzCkuBBFQFfAqhsKqs+gfRHC+qrrPMjReIW9s/Yp/lz0kezDIdcuTIAym30gYTIlzSFNzh5SoNa9qTVYsvU9ZHbx4lsY4t0cyihsMam3tgz3/CuLF32NYyvW37M1H4xVEH7EhzoBKhtPASVOjsZvtzuWSd3zr1N6PhllpndapU+DQZhlU2tOnfbtXkIxMJEpXChF0AgGRYil9A8g5Zmw9U/Rzp7r65/HCl3Qt0Ack+T+I5dqh9MBKxeGNLTylaRJvTlcip5hZB8Wc1OBy9hTvXkI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wcxqRaHuWWLQZ0zKR+gaqOltUVPg0OyOd91Jgkl/qAbaLuX++kNBja/2U35SISuCXNLOr+B0xPxHnszrFMeniR0/nIBGEGdwYGxT/5+KxB7t66GLQOPB/iTixkBVUhbACmdWl+OYTYeqRshmk10b0hrXfRh8nfExYmZ3O2SIS+BhKLRTdp8956nynLBLeTtDzIa/7pX458Nsh0WIJsdOyMqYrAx8x2RFvddEqDs0L2KGTBUntK/t4JzWlPdw0qKbc5QU5uxI/ts3c339HitBdNMHz9myufT96aEVOCg+v6W4LzVHA16Ppt/53wN8JDwFw7voiudcfRg5/kpLqCib0rFZ2plhvxHBykeVg01ETHTf1WJD6TB0lMTBhpxLoIfYnCwA8Hw4j8F6BzJTLkoKnmUXLwXXHNka6OraSI6AGDNJHa15BiOMZEP40C/ISqNL8uzFtZr2yPauNvKvLCUrz3tieOQ2DPEqdXz9K6+lXmbVrcUWTa4d7+4pbM1v7NtVHXK963QXWoGnaru4zScjQ6h07OpdN3CPLIorSwV0wfGQCZVyBivTp1O4Qqo3sB7M2Vjoi3yAH1OILvyXsFyX6HIEnlcECFCWsV1BYxQjlX0dUEqbJNu1GI72OY5tVS/FoNVBNVz1MYTcYH0YdEuZYC3nCUCxAFyc/M+4E=
git:
depth: 9999999
matrix:
include:
- language: objective-c
osx_image: xcode10.1
before_install:
- brew update
- brew install yarn
- brew install watchman
- gem install xcpretty-travis-formatter
- openssl aes-256-cbc -K $encrypted_4beaf9ef68f9_key -iv $encrypted_4beaf9ef68f9_iv
-in secret-files.tar.enc -out secret-files.tar -d
- tar xvf secret-files.tar
- echo $TRAVIS_BUILD_DIR
- mv $TRAVIS_BUILD_DIR/ios/Tidepool $TRAVIS_BUILD_DIR/ios/tidepool
- nvm install 10.15.0
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH="$HOME/.yarn/bin:$PATH"
- export NODE_OPTIONS=--max_old_space_size=4096
install:
- yarn install
- yarn run pre
- npx eslint src/ --max-warnings 0
- TZ=America/Chicago yarn test --forceExit --silent
- npx expo login -u tidepool -p $EXPO_PASSWORD
- npx expo publish --release-channel travis-ios
script:
- bash scripts/update-release-channel.sh travis-ios
- pushd ios
- security create-keychain -p travis ios-build.keychain
- security default-keychain -s ios-build.keychain
- security unlock-keychain -p travis ios-build.keychain
- security set-keychain-settings -t 3600 -l ~/Library/Keychains/ios-build.keychain
- security import ../tidepool-ios-distribution-cert.p12 -k ~/Library/Keychains/ios-build.keychain
-P $IOS_KEY_PASSWORD -T /usr/bin/codesign
- "security set-key-partition-list -S apple-tool:,apple: -s -k travis ~/Library/Keychains/ios-build.keychain"
- uuid=`grep UUID -A1 -a ../orgtidepoolblipnotesRN_AppStore.mobileprovision |
grep -io "[-A-F0-9]\{36\}"`
- mkdir -p ~/Library/MobileDevice/Provisioning\ Profiles
- cp ../orgtidepoolblipnotesRN_AppStore.mobileprovision ~/Library/MobileDevice/Provisioning\
Profiles/$uuid.mobileprovision
- xcodebuild archive -workspace $IOS_APP_NAME.xcworkspace -scheme $IOS_APP_NAME
-configuration Release -archivePath $IOS_APP_NAME.xcarchive | xcpretty -f `xcpretty-travis-formatter`
- xcodebuild -exportArchive -exportOptionsPlist exportArchiveOptions.plist -archivePath
$IOS_APP_NAME.xcarchive -exportPath ./
- zip -r $IOS_APP_NAME.zip $IOS_APP_NAME.xcarchive $IOS_APP_NAME.ipa
- language: android
dist: trusty
jdk: oraclejdk8
android:
components:
- build-tools-27.0.3
- android-23
- android-24
- android-27
- extra-google-google_play_services
- extra-google-m2repository
- extra-android-m2repository
licenses:
- android-sdk-preview-license-52d11cd2
- android-sdk-license-.+
- google-gdk-license-.+
before_install:
- yes | sdkmanager "platforms;android-28"
- openssl aes-256-cbc -K $encrypted_4beaf9ef68f9_key -iv $encrypted_4beaf9ef68f9_iv
-in secret-files.tar.enc -out secret-files.tar -d
- tar xvf secret-files.tar
- echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf
- sudo sysctl -p
- echo $TRAVIS_BUILD_DIR
- mv $TRAVIS_BUILD_DIR/ios/Tidepool $TRAVIS_BUILD_DIR/ios/tidepool
- nvm install 10.15.0
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH="$HOME/.yarn/bin:$PATH"
- export NODE_OPTIONS=--max_old_space_size=4096
install:
- yarn install
- yarn run pre
- npx eslint src/ --max-warnings 0
- TZ=America/Chicago yarn test --forceExit --silent
- npx expo login -u tidepool -p $EXPO_PASSWORD
- npx expo publish --release-channel travis-android
script:
- bash scripts/update-release-channel.sh travis-android
- pushd android
- "./gradlew :app:assembleRelease"
deploy:
provider: releases
draft: true
target_commitish: "$TRAVIS_COMMIT"
tag_name: "$TRAVIS_TAG"
name: Tidepool $TRAVIS_TAG
body: Automated draft release from Travis CI
skip_cleanup: true
overwrite: true
file_glob: true
api_key:
secure: eGk21GoWqTpy7JXrYMybgGF7hb59qWCDTHR2F5MssCL4n9inAoD/5TAaTvOJjYQjqApAa0ndz8yH85GbSWW5uQDnENJiNV7vPDzFiEkKeFpniLzgQpgwdODdFaerLMiGxRzzc+tH12ZUvmmx/gtcsgJxEAtV6+1wot6ONuK9ix6kl8+yuq3/HgpdRVM/HYPsqXE6q34jFfAscOCW6GaP+xigNNvEIr3H4Ljupp6OaubPmYTgqhwq8l0rEgCiniohSJg5l1ybQ55MjYSUoLb2IRGsgLC5aE2xBlQwlOEDQtBiCIGSDt7aX/UZqIl0/UH/LkPyftT25qEyFMkFucJW4uLoG94cbbrSkVoySeU005MF212J8pxZUivoyqjmA51gENA1G/PVR9uaKdFGBhtB39Hrr6+6c8SaFyKg33HRy46soDMhQw4Cdv3gS2DfLPnUf8ITMnSNVUshr8A0EWF3v1Ykdg1oul+GZqY8EsQ9xe7OHWN9Ap7Kkt/N82JsRFzQsQSFzrvPZvdkHRVUHMiN8kRFFnTnOb5TbFoZv0m4fPapoagNghkyW0TxLtztx3DShTljbskT3H+Mv4+u5DqoGyxFEI/S7xzFEsFZkpxi3FQVL7id0GQa3/+9BBUVgm7hN8csyMcQouCYdIEQTgRhfNBNWPRYy/4BDOyHLApOtpo=
file:
- "$TRAVIS_BUILD_DIR/android/app/build/outputs/**/*.apk"
- "$TRAVIS_BUILD_DIR/android/app/build/outputs/**/mapping.txt"
- "$TRAVIS_BUILD_DIR/ios/**/*.zip"
on:
repo: tidepool-org/mobile
tags: true
before_install:
- openssl aes-256-cbc -K $encrypted_4beaf9ef68f9_key -iv $encrypted_4beaf9ef68f9_iv
-in secret-files.tar.enc -out secret-files.tar -d