Travis update

This commit is contained in:
Angelos Chalaris
2017-12-30 15:14:22 +02:00
parent 47eda98817
commit ee2d6cc252

View File

@ -4,14 +4,17 @@ setup_git() {
} }
commit_website_files() { commit_website_files() {
git checkout master if [[ $(( $TRAVIS_EVENT_TYPE )) != 'pull_request' ]]; then
git add * if [[ $(( $TRAVIS_BRANCH )) != 'master' ]]; then
git commit --message "Travis build: $TRAVIS_BUILD_NUMBER" git checkout master
git add *
git commit --message "Travis build: $TRAVIS_BUILD_NUMBER"
fi
fi
} }
upload_files() { upload_files() {
echo "https://${GH_TOKEN}@github.com/Chalarangelo/30-seconds-of-code.git" git push --force --quiet "https://${GH_TOKEN}@github.com/Chalarangelo/30-seconds-of-code.git" master > /dev/null 2>&1
git push --force "https://${GH_TOKEN}@github.com/Chalarangelo/30-seconds-of-code.git" master > /dev/null 2>&1
} }
setup_git setup_git