"jshERP-web/vscode:/vscode.git/clone" did not exist on "3197598b329a91a41240a5d8e5df2f4c63c78334"
Commit 530d4044 authored by Dave Machado's avatar Dave Machado
Browse files

set PR additions file as link validation file

parent c1b906c3
#!/bin/bash #!/bin/bash
CHECK_FILE=../README.md FORMAT_FILE=../README.md
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
echo "running on Pull Request #$TRAVIS_PULL_REQUEST"
git show | egrep "\+" > additions.txt
LINK_FILE=additions.txt
else
echo "running on $TRAVIS_BRANCH branch"
LINK_FILE=../README.md
fi
echo "running format validation..." echo "running format validation..."
./validate_format.rb $CHECK_FILE ./validate_format.rb $FORMAT_FILE
if [[ $? != 0 ]]; then if [[ $? != 0 ]]; then
echo "format validation failed!" echo "format validation failed!"
exit 1 exit 1
...@@ -11,7 +20,7 @@ fi ...@@ -11,7 +20,7 @@ fi
if [ "$TRAVIS_BRANCH" == "master" ]; then if [ "$TRAVIS_BRANCH" == "master" ]; then
echo "running link validation..." echo "running link validation..."
./validate_links.rb $CHECK_FILE ./validate_links.rb $LINK_FILE
if [[ $? != 0 ]]; then if [[ $? != 0 ]]; then
echo "link validation failed!" echo "link validation failed!"
exit 1 exit 1
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment