Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wwwanlingxiao
public-apis
Commits
c1bb855f
Commit
c1bb855f
authored
Jul 23, 2017
by
Dave Machado
Committed by
GitHub
Jul 23, 2017
Browse files
Update link validation to work on LINK_FILE
parent
96dbf27f
Changes
1
Hide whitespace changes
Inline
Side-by-side
build/main.sh
View file @
c1bb855f
...
...
@@ -20,16 +20,15 @@ else
echo
"format validation passed!"
fi
if
[
"
$TRAVIS_BRANCH
"
==
"master"
]
;
then
echo
"running link validation..."
./validate_links.rb
$LINK_FILE
if
[[
$?
!=
0
]]
;
then
echo
"link validation failed!"
echo
"running link validation..."
./validate_links.rb
$LINK_FILE
if
[[
$?
!=
0
]]
;
then
echo
"link validation failed!"
exit
1
else
if
[
"
$TRAVIS_BRANCH
"
==
"master"
]
;
then
echo
"no links to check on master branch - script failure!"
exit
1
else
if
[
"
$TRAVIS_PULL_REQUEST
"
==
"false"
]
;
then
echo
"no links to check on
$TRAVIS_BRANCH
branch - script failure!"
fi
echo
"link validation passed!"
fi
echo
"link validation passed!"
fi
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment