if [ "$TRAVIS_REPO_SLUG" == "hawkw/deebee" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ] && ["$TRAVIS_SCALA_VERSION" == "2.11.4"]; then

	echo -e "Publishing ScalaDoc...\n"

	cp -R target/scala-2.11/api $HOME/api

	cd $HOME
	git config --global user.email "travis@travis-ci.org"
	git config --global user.name "travis-ci"
	git clone --quiet --branch=gh-pages https://${GH_TOKEN}@github.com/hawkw/deebee gh-pages > /dev/null

	cd gh-pages
	git rm -rf ./api
	cp -Rf $HOME/api .
	git add -f .
	git commit -m "Lastest ScalaDoc on successful travis build $TRAVIS_BUILD_NUMBER auto-pushed to gh-pages"
	git push -fq origin gh-pages > /dev/null

	echo -e "Published ScalaDoc to gh-pages.\n"

fi

if [ "$TRAVIS_REPO_SLUG" == "hawkw/deebee" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_SCALA_VERSION" == "2.11.4" ]; then

	echo -e "Publishing ScalaDoc...\n"

	cp -R target/scala-2.11/api $HOME/api

	cd $HOME
	git config --global user.email "travis@travis-ci.org"
	git config --global user.name "travis-ci"
	git clone --quiet --branch=gh-pages https://${GH_TOKEN}@github.com/hawkw/deebee gh-pages > /dev/null

	cd gh-pages
	git rm -rf ./api
	cp -Rf $HOME/api .
	git add -f .
	git commit -m "Lastest ScalaDoc on successful travis build $TRAVIS_BUILD_NUMBER auto-pushed to gh-pages"
	git push -fq origin gh-pages > /dev/null

	echo -e "Published ScalaDoc to gh-pages.\n"

fi

Fix check for Scala version in build matrix
Fix check for Scala version in build matrix