diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..1ded90e7b --- /dev/null +++ b/.travis.yml @@ -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" \ No newline at end of file diff --git a/autobuild.sh b/autobuild.sh deleted file mode 100755 index 55e605fc5..000000000 --- a/autobuild.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - -./build.py $* -FORMAT=$(echo "\033[1;33m%w%f\033[0m written") -while inotifywait -qre close_write --format "$FORMAT" . @./build/ @./mobile/bin/ @./mobile/gen/ @./.git/ -do - ./build.py $* -done - diff --git a/deploy.sh b/deploy.sh new file mode 100644 index 000000000..28d64ddd1 --- /dev/null +++ b/deploy.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +rsync -ar --delete-after --quiet $TRAVIS_BUILD_DIR/build/local/* travis-ci-iitc@modos189.ru:/home/modos189/web/iitc.modos189.ru/public_html/build/test/ + +rsync -ar --delete-after --quiet $TRAVIS_BUILD_DIR/build/mobile/IITC_Mobile-debug.apk travis-ci-iitc@modos189.ru:/home/modos189/web/iitc.modos189.ru/public_html/build/test/ + +ssh travis-ci-iitc@modos189.ru 'bash /home/modos189/IITC-CE/website/update-test-builds.sh' \ No newline at end of file diff --git a/deploy_rsa.enc b/deploy_rsa.enc new file mode 100644 index 000000000..dfbdbdcb6 Binary files /dev/null and b/deploy_rsa.enc differ