Merge pull request #158 from AdguardTeam/feature/157
Added Travis CI script for filters build
This commit is contained in:
commit
574f89a4cd
|
@ -0,0 +1,4 @@
|
|||
language: bash
|
||||
|
||||
script:
|
||||
- bash deploy.sh
|
|
@ -0,0 +1,22 @@
|
|||
#!/bin/bash
|
||||
if [ "$TRAVIS_COMMIT_MESSAGE" == "Auto update filters" ]
|
||||
then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
python Filters/parser.py
|
||||
|
||||
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
|
||||
|
||||
git remote add deploy "https://$GITHUB_TOKEN@github.com/AdguardTeam/AdguardDNS.git"
|
||||
git fetch deploy
|
||||
|
||||
git commit -a -m "Auto update filters"
|
||||
git push -q deploy HEAD:master
|
||||
else
|
||||
echo "failure: $?"
|
||||
exit 1
|
||||
fi
|
Loading…
Reference in New Issue