2017-07-04 08:34:17 +01:00
|
|
|
#!/bin/bash
|
2017-07-13 07:43:08 +01:00
|
|
|
#if [ "$TRAVIS_COMMIT_MESSAGE" == "Auto update filters" ]
|
|
|
|
#then
|
|
|
|
# exit 0
|
|
|
|
#fi
|
2017-07-04 08:34:17 +01:00
|
|
|
|
|
|
|
python Filters/parser.py
|
|
|
|
|
2017-07-07 10:36:50 +01:00
|
|
|
if [[ $? = 0 ]]; then
|
|
|
|
git config --global user.name "Travis CI"
|
|
|
|
git config --global user.email "travis@travis-ci.org"
|
|
|
|
git config --global push.default simple
|
2017-07-04 08:34:17 +01:00
|
|
|
|
2017-07-07 10:36:50 +01:00
|
|
|
git remote add deploy "https://$GITHUB_TOKEN@github.com/AdguardTeam/AdguardDNS.git"
|
|
|
|
git fetch deploy
|
2017-07-04 08:34:17 +01:00
|
|
|
|
2017-07-07 10:36:50 +01:00
|
|
|
git commit -a -m "Auto update filters"
|
|
|
|
git push -q deploy HEAD:master
|
|
|
|
else
|
|
|
|
echo "failure: $?"
|
|
|
|
exit 1
|
|
|
|
fi
|