Skip to content

Commit

Permalink
Migration scripts for deployment in localbuildsettings.py.
Browse files Browse the repository at this point in the history
Fix update URL/downloadURL IITC-CE#32 IITC-CE#53 IITC-CE#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 IITC-CE#56
  • Loading branch information
modos189 committed Feb 8, 2019
1 parent d77562b commit fe79f78
Showing 1 changed file with 31 additions and 5 deletions.
36 changes: 31 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ language: android
jdk: oraclejdk8
branches:
only:
- test-builds
- master
- /^v([0-9]+)\.([0-9]+).*$/
android:
components:
- platform-tools
Expand All @@ -19,15 +21,39 @@ 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-deploy
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

0 comments on commit fe79f78

Please sign in to comment.