-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
66 lines (55 loc) · 5.7 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
language: objective-c
os: osx
osx_image: xcode7
env:
global:
- secure: umyyMwTI5MxImgvgyh7lv/DfrHYjI4e/UZCY6ocfde4r0NyBtKvGj76ax55frb2Uifg7sb3rscAOEx6NODADD2Ru/OfLmRowzfaXiJ8zBMXjpCzXginxrlB92/dJbf2CRxz2m0eiBO7w706CXLrcpMcuFV1Jaece5YZX0ZF2ItWaz13VlCddgeMvQ01df7LZRWPCBlIrsdYmh5Z4iDOAAZOPoypSbH8AHoLO4O3b1Q2hLhNGaVX8i5OWj4dlZkeLjVKLMTGhL4l2Pa9JC+q6yQvXEzGI0l2wmkeWF9w5hBuL0J4I7GA8CP3/MqTEqiuVd+tpC/vJE375NjZibHwheHlPKSLcIo1OAG5GeFcEtsDzkry28mPTuqKtpdJbrA7sExUyq+O+u5A3YNDjp5ezFBbfekPSMxiRj0DkBEttpVG3j/c4vnpfOcz+spqoa2vNkN1n3Ee+nZ8hwmU2N//yxZBa7D8jIlfBM15MToHX/UaSaL/AqRAbwKMPwL2qIcxLTABQUjNw3RJmbuaUbcPJ+6ayUaY+yGD/e2Sq86rHg5bdS8eB+isqPQ4JbPCSqpqEzwWE3x3eoiAkoFuobn+Hsi7K2TOt11SkkmfV4iaV7apMfQKXUFy5c9mNm7HZXfLj/O4R61qgnmYpt21chEdJOJChCt2SrYaAnmLuc0dt2hs=
- secure: SWMEbIYwRzOMjqKuuQaYbWpb+DtIYn374CpgseS7DvSJebDaR1inbKZl6a+egKlmHqfH4ctJLL4EZFwUpmYXhiRhlFSzm5Fn+vIAiJcFbYtVYcTIEo8SKs/2Wb+yX5hDBB6f+Ry3hx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DaCYzV1m8lrM7ufyyJ2G/McGnU3LBWCzNGRUsvvIIVoIBn7auR0ki1uFd2EyDrBSMWGm3ltIcs+Va15qO9z4D3qc5veYginoVtXNhPOuCVfzfQk/i639BTmeOpq0zHaSg9aG94QwImZUCFZbUcz17+x7IeQShww9iQcGTxIym3KNAOUd6bZXcEFSk7m0C8FUUY1LzIAh5hw0h1n2Dc9LpVuOOoZ2/trVWw3488LrybBCEpeiJmpyw65soKoeltlcaSw1YY8ED7PO6HouGMrszR521+pty3+mXK96/JT3JI78EzWYa1UfA4oUQIvLBfqCGgNl8o58X0df3X89iT2Pgfh3dfxKnAhp4FGJpKBzbKzEQAKYDxZSpbo2pnfN3iGUua/2kHqD5qDrtTE1ur8lpAaO8JPLcOIvfMrzSWpoNPYwAp875p7zyXjbIBlb08miFVecC2nLBpORTzlc0Bdp4xF79QY=
before_install:
- export LANG=en_US.UTF-8
- brew update
- npm install -g [email protected]
- npm install -g grunt-cli [email protected] [email protected]
before_script:
- cd resources/ios/
- openssl aes-256-cbc -d -a -in certs.tar.enc -out certs.tar -k $EK -iv $EIV
- tar xvf certs.tar
- security create-keychain -p travis ios-build.keychain
- security unlock-keychain -p travis ios-build.keychain
- security default-keychain -s ios-build.keychain
- security set-keychain-settings -t 3600 -l ~/Library/Keychains/ios-build.keychain #let keychain be accessable for 1h
- security import dev.cer -k ~/Library/Keychains/ios-build.keychain -T /usr/bin/codesign
- security import dev.p12 -k ~/Library/Keychains/ios-build.keychain -T /usr/bin/codesign -P $IPW
- mkdir -p ~/Library/MobileDevice/Provisioning\ Profiles
- cp wh.mobileprovision ~/Library/MobileDevice/Provisioning\ Profiles/
- cd ../..
script:
- npm install
- npm install -g gulp
- npm install -g ios-sim
- npm install -g ios-deploy
- ionic setup sass
- ionic platform add ios
- rm -r platforms/ios/wanthaver.xcodeproj #remove generated project and
- cp -r resources/ios/wanthaver.xcodeproj platforms/ios/wanthaver.xcodeproj # copy configurated (sheme + signing setup)
- ionic plugin add ionic-plugin-keyboard
- cordova plugin add cordova-plugin-geolocation
- cordova plugin add cordova-plugin-camera
- cordova plugin add cordova-plugin-inappbrowser
# - cordova plugin add cordova-plugin-googlemaps --variable API_KEY_FOR_IOS="$mapsKey"
- cordova plugin add https://github.com/phonegap-googlemaps-plugin/cordova-plugin-googlemaps --variable API_KEY_FOR_IOS="$mapsKey"
- cordova plugin add phonegap-plugin-push --variable SENDER_ID="X"
- ionic build ios --device --release
- cd platforms/ios
- xcodebuild archive -project wanthaver.xcodeproj -scheme wanthaver -archivePath wanthaver.xcarchive
- xcodebuild -exportArchive -archivePath wanthaver.xcarchive -exportPath wanthaver -exportFormat ipa -exportProvisioningProfile "MAD WantHaver Development"
after_success:
- ls -a platforms/ios
- curl -F "[email protected]" -F "project=de.fau.cs.mad.wanthaver.ios" $UPL
after_script:
- security delete-keychain ios-build.keychain
- rm -f "~/Library/MobileDevice/Provisioning Profiles/wh.mobileprovision"
- rm -f "wh.mobileprovision"