Added trvis ci config and delpoy script
This commit is contained in:
Nikolay Kartyshov 2017-07-04 10:34:17 +03:00
parent c8ca010f4f
commit 125708c1b9
2 changed files with 21 additions and 0 deletions

4
.travis.yml Normal file
View File

@ -0,0 +1,4 @@
language: bash
script:
- bash deploy.sh

17
deploy.sh Normal file
View File

@ -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