You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

пре 7 година
пре 7 година
123456789101112131415161718192021222324252627282930
  1. #!/bin/bash
  2. FORMAT_FILE=../README.md
  3. if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
  4. echo "running on Pull Request #$TRAVIS_PULL_REQUEST"
  5. git show | egrep "\+" > additions.txt
  6. echo "--ADDITIONS--"
  7. cat additions.txt
  8. LINK_FILE=additions.txt
  9. else
  10. echo "running on $TRAVIS_BRANCH branch"
  11. LINK_FILE=../README.md
  12. fi
  13. echo "running format validation..."
  14. ./validate_format.rb $FORMAT_FILE
  15. if [[ $? != 0 ]]; then
  16. echo "format validation failed!"
  17. exit 1
  18. else
  19. echo "format validation passed!"
  20. fi
  21. echo "running link validation..."
  22. ./validate_links.rb $LINK_FILE
  23. if [[ $? != 0 ]]; then
  24. echo "link validation failed!"
  25. exit 1
  26. else
  27. echo "link validation passed!"
  28. fi