Skip to content

Commit

Permalink
Added Travis CI for automatic build of test versions
Browse files Browse the repository at this point in the history
  • Loading branch information
modos189 committed Nov 27, 2018
1 parent 1b6410c commit 369ba7b
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 9 deletions.
38 changes: 38 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
language: android
jdk: oraclejdk8

branches:
only:
- master

android:
components:
- platform-tools
- tools
- build-tools-28.0.3
- android-28
- extra-android-m2repository

addons:
apt:
packages:
- python3
ssh_known_hosts: modos189.ru

notifications:
email:
on_success: change
on_failure: always

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"
- "bash ./deploy.sh"
9 changes: 0 additions & 9 deletions autobuild.sh

This file was deleted.

7 changes: 7 additions & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

rsync -ar --delete-after --quiet $TRAVIS_BUILD_DIR/build/local/* [email protected]:/home/modos189/web/iitc.modos189.ru/public_html/build/test/

rsync -ar --delete-after --quiet $TRAVIS_BUILD_DIR/build/mobile/IITC_Mobile-debug.apk [email protected]:/home/modos189/web/iitc.modos189.ru/public_html/build/test/

ssh [email protected] 'bash /home/modos189/IITC-CE/website/update-test-builds.sh'
Binary file added deploy_rsa.enc
Binary file not shown.

0 comments on commit 369ba7b

Please sign in to comment.