Ver código fonte

Update main script and Travis config

pull/385/head
Dave Machado 6 anos atrás
pai
commit
ab045f33f3
2 arquivos alterados com 14 adições e 6 exclusões
  1. +4
    -4
      .travis.yml
  2. +10
    -2
      build/main.sh

+ 4
- 4
.travis.yml Ver arquivo

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


+ 10
- 2
build/main.sh Ver arquivo

@@ -1,8 +1,16 @@
#!/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" ]
then
echo "running link validation..."
awesome_bot README.md --allow-ssl --allow 403,302
fi

./validate.rb ../README.md

Carregando…
Cancelar
Salvar