-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
66 lines (65 loc) · 3.5 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
osx_image: xcode11.2
before_install:
- brew tap AdoptOpenJDK/openjdk
- brew cask install adoptopenjdk8
- ls /Library/Java/JavaVirtualMachines/
- export JAVA_HOME=/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home
- wget http://dl.google.com/android/android-sdk_r24.4.1-macosx.zip
- unzip android-sdk_r24.4.1-macosx.zip
- export ANDROID_HOME=$PWD/android-sdk-macosx
- export PATH=${PATH}:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools
- echo yes | android update sdk --filter platform-tools --no-ui --force > /dev/null
- echo yes | android update sdk --filter android-28 --no-ui --force > /dev/null
- echo yes | android update sdk --filter build-tools-28.0.3 --all --no-ui --force
> /dev/null
- echo yes | android update sdk --filter addon-google_apis-google-28 --all --no-ui
--force > /dev/null
install:
- nvm install v10.21.0
- nvm use v10.21.0
- npm install appcelerator@5.0.0 -g
- appc login --username $USERNAME --password $PASSWORD
- appc ti sdk install 8.0.0.GA
- wget https://dl.google.com/android/repository/android-ndk-r17c-darwin-x86_64.zip
- unzip -q android-ndk-r17c-darwin-x86_64.zip
- appc ti config android.sdkPath $ANDROID_HOME
- appc ti config android.ndkPath ${PWD}/android-ndk-r17c
script:
- ANDROID_SDK_VERSION=1.12.27
- IOS_VERSION=1.29.9
- TITANIUM_VERSION=${TRAVIS_TAG:-2.26.0}
- echo "Creating ti.testfairy version ${TITANIUM_VERSION}"
- 'sed -i "" "s/^version:.*/version: ${TITANIUM_VERSION}/g" android/manifest'
- 'sed -i "" "s/^version:.*/version: ${TITANIUM_VERSION}/g" ios/manifest'
- rm android/lib/testfairy-android-sdk.jar
- rm -rf ios/TestFairySDK
- mkdir ios/TestFairySDK
- curl -s -L https://dl.bintray.com/testfairy/testfairy/testfairy/testfairy-android-sdk/${ANDROID_SDK_VERSION}/testfairy-android-sdk-${ANDROID_SDK_VERSION}.jar
-o android/lib/testfairy-android-sdk.jar
- curl -s -L https://s3.amazonaws.com/testfairy/sdk/TestFairySDK-${IOS_VERSION}.zip
-o ios/TestFairySDK/TestFairySDK.zip
- unzip -d ios/TestFairySDK ios/TestFairySDK/TestFairySDK.zip
- rm ios/TestFairySDK/TestFairySDK.zip
- cd ios
- appc run -p ios --build-only --sdk 8.0.0.GA
- cd ../android
- appc run -p android --build-only --sdk 8.0.0.GA
- cd ..
- unzip -l ios/dist/com.testfairy.titestfairy-iphone-${TITANIUM_VERSION}.zip
- cp ios/dist/com.testfairy.titestfairy-iphone-${TITANIUM_VERSION}.zip "/Users/travis/Library/Application
Support/Titanium/."
- unzip -l android/dist/com.testfairy.titestfairy-android-${TITANIUM_VERSION}.zip
- cp android/dist/com.testfairy.titestfairy-android-${TITANIUM_VERSION}.zip "/Users/travis/Library/Application
Support/Titanium/."
deploy:
provider: releases
api_key:
secure: g9tgt24b0/Gsz7wJ93uPYIAAbpr/b6hXuLh3WLB+KCL53rkjxRK0Sy/kiVAduwkiaS3C3vgNm3KIE7uONFHD3nnupoiE1uYnTsvuamiQoPaYsLfC2jxbCdYJ1k+eEDs9BBCJwvkX0z8WHLhsGLHwmWb4SGXNN8C+8jjXzfMhsda32weCghkXnCvuwEbd5otNX9goqFXPxMzZd1dg8zuqVxV6Y7lGABXb6BaIyg33Nbz3YBG/FaTyT08pbC5PaA7JsGVkxF6P6XXpBX9MaAPVYM7661mg1r0PK92djXfjVjnZDwd7Cib0WWoprdsBq7Vut7r2Oz+rwOcqeLidAk+kYuESO/YUq67mxkgNcz0mv3vXeFw5sM7EtbLAXmypH6Ofz0AxospF7moos4dBPhOpl4YgIuuSKYhSYhFNM3X6vbYk7XzzRnppOrgyUg+vL148/aDFfqSd27Sv2hFufG0QHpWSav60kGMezYCn8gS+zTEdSeyYsOIm1dXAMVHUEYZtXlTq7q3fBV+GYqUcHJeoXoVfq8eu9Oymdiil1U0cAOuzKeCAZOh7/0ZLB9aRoI0nS7Qu/fQ5vcE2tIqsnyfymnYe4z8x3yRH9/ifcqv8sUuoyJmVntIsDkDNxEkR49mKt+3sDm/8PmaFBm6g4wYuP4+aMvt/PRG7zQnO3jxLh/k=
file:
- ios/dist/com.testfairy.titestfairy-iphone-${TRAVIS_TAG}.zip
- android/dist/com.testfairy.titestfairy-android-${TRAVIS_TAG}.zip
skip_cleanup: true
on:
tags: true
all_branches: true