From 125708c1b9c098fbd5047f1b6dc8a7e1b5977b5f Mon Sep 17 00:00:00 2001 From: Nikolay Kartyshov Date: Tue, 4 Jul 2017 10:34:17 +0300 Subject: [PATCH] https://github.com/AdguardTeam/AdguardDNS/issues/157 Added trvis ci config and delpoy script --- .travis.yml | 4 ++++ deploy.sh | 17 +++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 .travis.yml create mode 100644 deploy.sh diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..d6d65084 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,4 @@ +language: bash + +script: + - bash deploy.sh \ No newline at end of file diff --git a/deploy.sh b/deploy.sh new file mode 100644 index 00000000..de150034 --- /dev/null +++ b/deploy.sh @@ -0,0 +1,17 @@ +#!/bin/bash +if [ "$TRAVIS_COMMIT_MESSAGE" == "Auto update filters" ] +then + exit 0 +fi + +python Filters/parser.py + +git config --global user.name "Travis CI" +git config --global user.email "travis@travis-ci.org" +git config --global push.default simple + +git remote add deploy "https://$GITHUB_TOKEN@github.com/nkartyshov/travis-ci-test.git" +git fetch deploy + +git commit -a -m "Auto update filters" +git push -q deploy HEAD:master