Skip to content

Commit

Permalink
fix travis scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleg Klimenko committed Oct 17, 2017
1 parent a3af61c commit 081222c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
8 changes: 5 additions & 3 deletions .travis-push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ upload_files() {
git push --quiet --set-upstream origin-pntn master
}

setup_git
commit_built_tyr
upload_files
if [ "$TRAVIS_BRANCH" = "master" ] && [ "$TRAVIS_PULL_REQUEST" = "false" ]; then
setup_git
commit_built_tyr
upload_files
fi
5 changes: 1 addition & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,8 @@ prod_deps:

.PHONY: prod_build_tyr
prod_build_tyr: get_docker_id # this is for automated travis builds, don't run it manually
@if [ "$(TRAVIS_BRANCH)" = "master" ]; then \
@if [ "$(TRAVIS_BRANCH)" = "master" ] && [ "$(TRAVIS_PULL_REQUEST)" = "false" ]; then \
docker exec -it $(RUNNING_DOCKER_ID) sh -c 'cd /var/www/html/Tyr && HOME=/home/user gosu user make deps && make build'; \
cd Tyr && make cleanup_prebuilts && make prebuild ; \
else \
exit 1 ; \
fi
# we should exit with error to prevent push to repo from travis on non-master branches

0 comments on commit 081222c

Please sign in to comment.