Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
todomvc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Eugene Shen
todomvc
Commits
e5d584b8
Commit
e5d584b8
authored
Apr 29, 2015
by
Sam Saccone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: Handle when no changes to examples
parent
ca297253
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
travis-runner.sh
travis-runner.sh
+8
-1
No files found.
travis-runner.sh
View file @
e5d584b8
...
@@ -20,7 +20,14 @@ else
...
@@ -20,7 +20,14 @@ else
git fetch current
&&
\
git fetch current
&&
\
cd
browser-tests/
&&
\
cd
browser-tests/
&&
\
npm i
&&
\
npm i
&&
\
git diff HEAD current/master
--name-only
|
awk
'BEGIN {FS = "/"}; {print $1 "/" $2 "/" $3}'
|
uniq
|
grep
-v
\/\/
|
grep
examples |
awk
-F
'[/]'
'{print "--framework=" $2}'
| xargs npm run
test
--
changes
=
$(
git diff HEAD origin/master
--name-only
|
awk
'BEGIN {FS = "/"}; {print $1 "/" $2 "/" $3}'
|
uniq
|
grep
-v
\/\/
|
grep
examples |
awk
-F
'[/]'
'{print "--framework=" $2}'
)
if
[
"
${#
changes
}
"
=
0
]
then
exit
0
else
echo
changes | xargs npm run
test
--
fi
exit
$?
exit
$?
fi
fi
Write
Preview
Markdown
is supported
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