-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
28 lines (28 loc) · 1.15 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
language: objective-c
env:
global:
- "MODULE_NAME=uk.co.tbp.pushio"
before_install:
- MODULE_ROOT=$PWD
install:
- cd $MODULE_ROOT
- curl -o settup.sh https://raw.githubusercontent.com/TheBookPeople/ci-scripts/master/travis/titanium/modules/settup.sh
- source settup.sh -s "3.5.1.GA"
script:
- curl -o build.sh https://raw.githubusercontent.com/TheBookPeople/ci-scripts/master/travis/titanium/modules/build.sh
- source build.sh
before_deploy:
- export ANDROID_DIST=$(find . -name 'uk.co.tbp.pushio-android-*.zip' -exec basename {} \;)
- export IOS_DIST=$(find . -name 'uk.co.tbp.pushio-iphone-*.zip' -exec basename {} \;)
- echo "deploying Android $ANDROID_DIST to GitHub releases"
- echo "deploying iOS $IOS_DIST to GitHub releases"
deploy:
provider: releases
skip_cleanup: true
api_key:
secure: NhzPsm6tkcZNc7RPMwASH1D5xlbHfRaC4ssBBsC1MG5NOML9rE7wFPtag9Q6wQzCEZcAsCFIT3cktdQYOVGE7wgb7TUox7nhu+1C2+tymVozNFuhaiZ4mW4LpYTT82FgCXq81/bHiHpxj82T0f2V3XwNQ0tdEw5EwA7SlqEuKd4=
file:
- "${HOME}/build/${TRAVIS_REPO_SLUG}/android/dist/${ANDROID_DIST}"
- "${HOME}/build/${TRAVIS_REPO_SLUG}/ios/${IOS_DIST}"
on:
tags: true