2017-08-16 15:50:02 +00:00
|
|
|
|
#!/usr/bin/env bash
|
2017-08-31 18:42:19 +00:00
|
|
|
|
## Test script for Travis CI integration
|
2017-08-16 15:50:02 +00:00
|
|
|
|
##
|
|
|
|
|
## Copyright (c) 2012-2014 Sylvain Benner
|
|
|
|
|
## Copyright (c) 2014-2017 Sylvain Benner & Contributors
|
|
|
|
|
##
|
|
|
|
|
## Author: Eugene Yaremenko
|
|
|
|
|
## URL: https://github.com/syl20bnr/spacemacs
|
|
|
|
|
##
|
|
|
|
|
## This file is not part of GNU Emacs.
|
|
|
|
|
##
|
|
|
|
|
## License: GPLv3
|
|
|
|
|
|
|
|
|
|
# Make sure that PR doesn't target master branch
|
|
|
|
|
if [ $TRAVIS_SECURE_ENV_VARS = false ] &&
|
|
|
|
|
[ $TRAVIS_PULL_REQUEST != false ] &&
|
|
|
|
|
[ "$TRAVIS_BRANCH" = "master" ]; then
|
|
|
|
|
printf '=%.0s' {1..70}
|
|
|
|
|
printf "\n し(*・∀・)/ Thanks for the contribution! \(・∀・*)ノ\n"
|
|
|
|
|
printf '=%.0s' {1..70}
|
|
|
|
|
printf "\n( ^◡^)っ Please submit your PR against the develop branch.\n"
|
|
|
|
|
echo "You can read the contribution guidelines at:"
|
|
|
|
|
echo "https://github.com/syl20bnr/spacemacs/blob/develop/CONTRIBUTING.org"
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|
|
|
|
|
|
2017-08-31 18:42:19 +00:00
|
|
|
|
echo "Congratulations! It seems like you're PRing against the right branch!"
|