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
530d4044
Commit
530d4044
authored
Jul 21, 2017
by
Dave Machado
Browse files
set PR additions file as link validation file
parent
c1b906c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
build/main.sh
View file @
530d4044
#!/bin/bash
CHECK_FILE
=
../README.md
FORMAT_FILE
=
../README.md
if
[
"
$TRAVIS_PULL_REQUEST
"
!=
"false"
]
;
then
echo
"running on Pull Request #
$TRAVIS_PULL_REQUEST
"
git show | egrep
"
\+
"
>
additions.txt
LINK_FILE
=
additions.txt
else
echo
"running on
$TRAVIS_BRANCH
branch"
LINK_FILE
=
../README.md
fi
echo
"running format validation..."
./validate_format.rb
$
CHECK
_FILE
./validate_format.rb
$
FORMAT
_FILE
if
[[
$?
!=
0
]]
;
then
echo
"format validation failed!"
exit
1
...
...
@@ -11,7 +20,7 @@ fi
if
[
"
$TRAVIS_BRANCH
"
==
"master"
]
;
then
echo
"running link validation..."
./validate_links.rb
$
CHEC
K_FILE
./validate_links.rb
$
LIN
K_FILE
if
[[
$?
!=
0
]]
;
then
echo
"link validation failed!"
exit
1
...
...
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