Update main script and Travis config

This commit is contained in:
Dave Machado 2017-07-10 01:41:50 -04:00
parent 3448c6cb0d
commit ab045f33f3
2 changed files with 14 additions and 6 deletions

View File

@ -1,4 +1,4 @@
language: node_js nguage: node_js
notifications: notifications:
email: false email: false
before_install: before_install:
@ -8,8 +8,8 @@ install:
before_script: before_script:
- cd build - cd build
script: script:
- main.sh - ./main.sh
after_success: after_success:
- build.sh - ./build.sh
- deploy.sh - ./deploy.sh

View File

@ -1,8 +1,16 @@
#!/bin/bash #!/bin/bash
echo "running format validation..."
./validate.rb ../README.md
if ["$?" == 0]; then
echo "format validation PASSED"
else
echo "format validation FAILED"
fi
if [ "$TRAVIS_BRANCH" == "master" ] if [ "$TRAVIS_BRANCH" == "master" ]
then then
echo "running link validation..."
awesome_bot README.md --allow-ssl --allow 403,302 awesome_bot README.md --allow-ssl --allow 403,302
fi fi
./validate.rb ../README.md