Skip to content
This repository has been archived by the owner on Mar 8, 2020. It is now read-only.

Commit

Permalink
protect release builds (#1419)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbwhite authored and jt-nti committed Jun 30, 2017
1 parent a992ea2 commit 77c4f98
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .travis/before-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ sudo rm /usr/local/bin/docker-compose
curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
chmod +x docker-compose
sudo mv docker-compose /usr/local/bin
echo "Docker-compose version: "
echo "Docker-compose version: "
docker-compose --version

# Update docker
Expand All @@ -22,7 +22,7 @@ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
sudo apt-get install docker-ce
echo "Docker version: "
echo "Docker version: "
docker --version

sudo apt-get install linkchecker
Expand Down Expand Up @@ -85,8 +85,8 @@ elif [ -n "$TRAVIS_PULL_REQUEST" ]; then
git diff --name-only "$TRAVIS_COMMIT" "$TRAVIS_BRANCH" >> changedfiles.log || echo Fail
fi

RESULT=$(cat changedfiles.log | sed '/^\s*$/d' | awk '!/composer-website/ { print "MORE" }')
if [ "${RESULT}" == "" ];
RESULT=$(cat changedfiles.log | sed '/^\s*$/d' | awk '!/composer-website/ { print "MORE" }')
if [ "${RESULT}" == "" ] && [ "$TRAVIS_TAG" == "" ];
then

# Check of the task current executing
Expand All @@ -95,7 +95,7 @@ then
# echo "ABORT_CODE=0" >> ${DIR}/build.cfg
echo 'Docs only build - no pointing bothering with anything more'
exit 0
fi
fi

else
echo "More than docs changes"
Expand Down

0 comments on commit 77c4f98

Please sign in to comment.