Skip to content

Commit

Permalink
ci: Add repository check to semaphore scripts
Browse files Browse the repository at this point in the history
This fixes the condition of build failure when someone creates a
pull request from the master branch. It now check that the project
is coala/corobo repo and then execute build steps

Fixes coala#583
  • Loading branch information
Man-Jain committed Oct 17, 2018
1 parent aed83ca commit 4b41518
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .ci/semaphore.docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ docker run --user root meetmangukiya/corobo /bin/sh -c "
python -m pytest
"

if [[ $BRANCH_NAME == "master" ]]
if [[ $BRANCH_NAME == "master" && $SEMAPHORE_REPO_SLUG == "coala/corobo" ]]
then echo "pushing..." && docker push meetmangukiya/corobo && docker push meetmangukiya/corobo-answers
fi

0 comments on commit 4b41518

Please sign in to comment.