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.

main.sh 455 B

1234567891011121314151617181920
  1. #!/bin/bash
  2. echo "running format validation..."
  3. ./validate_format.rb ../README.md
  4. if [[ $? != 0 ]]; then
  5. echo "format validation failed!"
  6. exit 1
  7. else
  8. echo "format validation passed!"
  9. fi
  10. if [ "$TRAVIS_BRANCH" == "master" ]; then
  11. echo "running link validation..."
  12. ./validate_links.rb ../README.md
  13. if [[ $? != 0 ]]; then
  14. echo "link validation failed!"
  15. exit 1
  16. else
  17. echo "link validation passed!"
  18. fi
  19. fi