Skip to content

Commit

Permalink
Update deploy script (#97)
Browse files Browse the repository at this point in the history
* Migration scripts for deployment in localbuildsettings.py.
Fix update URL/downloadURL #32 #53 #86

Commit to master leads to release build and upload to site.
Creating a new GitHub Release leads to build release version, uploading to site and attaching archives to GitHub Release #56

* Build only test-builds branch and GitHub Releases
  • Loading branch information
modos189 authored Mar 13, 2019
1 parent 5170a6d commit 9e478c9
Showing 1 changed file with 32 additions and 6 deletions.
38 changes: 32 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ language: android
jdk: oraclejdk8
branches:
only:
- master
- test-builds
- /^v([0-9]+)\.([0-9]+).*$/
android:
components:
- platform-tools
Expand All @@ -19,15 +20,40 @@ notifications:
email:
on_success: change
on_failure: always

jobs:
include:
- stage: test-builds
if: branch = test-builds
env: BUILD_TYPE=test
- stage: release
if: branch != test-builds
env: BUILD_TYPE=release

before_script:
- openssl aes-256-cbc -K $encrypted_460819c10bef_key -iv $encrypted_460819c10bef_iv
-in deploy_rsa.enc -out /tmp/deploy_rsa -d
- chmod 600 /tmp/deploy_rsa
- eval "$(ssh-agent -s)"
- ssh-add /tmp/deploy_rsa
- rm -rf build/local/*
- rm -rf build/mobile/*

script:
- "./build.py local"
- "./build.py mobile"
- "curl -s https://iitc.modos189.ru/deploy.sh | bash"
- wget https://iitc.modos189.ru/deploy/$BUILD_TYPE/localbuildsettings.py
- ./build.py $BUILD_TYPE
- ./build.py mobile

deploy:
provider: releases
name: $TRAVIS_TAG
skip_cleanup: true
api_key:
secure: KoJXTxCoatpFbQgbW1VBIh1ndtQIEmj68sANI+zOs54vi9XMCG3RM4cFn4y7YsSI/kz6XcoSC30SNnqedxHMPJyjrIWvVLKDTlbJswZmGhsslrZmClw3sFROKodVI5DoI0520mAfwzQ5PInPpSEfsPZQhA9ufv1wTZ/98q2efcRPu3J6riSdOZmqJ2A+veWpID3t3P57Lcjew+P3PdmUpwC9t6Yp4oQaYX4DZvMMpqK6s8E4EfOVQptaFAxYDIlAIWxNsfIJkx3jwmLdyaSwQL/fyesQ3fZRECKZTN7RM8/2nImuBZsq4uKS3nrKpLEXFTId45ET5N0fa23KXMLMM8NW0LlATLLWju+N7dP2HCeV5w2wxh+ToAR58XciiZLIsxI1IfF8WXloPax6DmJYksEKOenMYB/y/VASi5xbEhl89kdkxAaO6hAoVqKYo+xt7y3nPGSDUf+zfJnno5lPXgF3ctVAjmRBTWUSQQ5VhAeOp2LGg8ennzSkaLKxqyIxJ7F+n7Y0/QmG0uQzmerOjEEjVBsyVawRWjZGrDlog3Pq2S0n4vnbvbtUchwp/Fapjtg1f1pWy9Bzi1tnnE4ALJEmM894izxWH4vtDQu1+nkjKtLrkxgjk5yEuPj3n95ab64UO1To/x4YlyApmLkDeZIEMd+5siBTeGlB1V05Mr4=
file_glob: true
file:
- ./build/mobile/IITC_Mobile-release.apk
- ./build/release/*
on:
repo: IITC-CE/ingress-intel-total-conversion
tags: true
all_branches: true
condition: $TRAVIS_BRANCH != test-builds

0 comments on commit 9e478c9

Please sign in to comment.