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
Sven Franck
todomvc
Commits
92fcc737
Commit
92fcc737
authored
May 10, 2015
by
Sam Saccone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
📟
space => tab
parent
dec3151a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
26 deletions
+26
-26
test-runner.sh
test-runner.sh
+26
-26
No files found.
test-runner.sh
View file @
92fcc737
...
...
@@ -4,37 +4,37 @@ set -o pipefail
get_changes
()
{
git remote add current https://github.com/tastejs/todomvc.git
&&
\
git fetch
--quiet
current
&&
\
git diff HEAD origin/master
--name-only
|
awk
'BEGIN {FS = "/"}; {print $1 "/" $2 "/" $3}'
|
uniq
|
grep
-v
\/\/
|
grep
examples |
awk
-F
'[/]'
'{print "--framework=" $2}'
git remote add current https://github.com/tastejs/todomvc.git
&&
\
git fetch
--quiet
current
&&
\
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
[
"
$TRAVIS_BRANCH
"
=
"master"
]
&&
[
"
$TRAVIS_PULL_REQUEST
"
=
"false"
]
then
git submodule add
-b
gh-pages https://
${
GH_OAUTH_TOKEN
}
@github.com/
${
GH_OWNER
}
/
${
GH_PROJECT_NAME
}
site
>
/dev/null 2>&1
cd
site
if
git checkout gh-pages
;
then
git checkout
-b
gh-pages
;
fi
git
rm
-r
.
cp
-R
../dist/
*
.
cp
../dist/.
*
.
git add
-f
.
git config user.email
'travis@rdrei.net'
git config user.name
'TasteBot'
git commit
-am
'update the build files for gh-pages [ci skip]'
# Any command that using GH_OAUTH_TOKEN must pipe the output to /dev/null to not expose your oauth token
git push https://
${
GH_OAUTH_TOKEN
}
@github.com/
${
GH_OWNER
}
/
${
GH_PROJECT_NAME
}
HEAD:gh-pages
>
/dev/null 2>&1
git submodule add
-b
gh-pages https://
${
GH_OAUTH_TOKEN
}
@github.com/
${
GH_OWNER
}
/
${
GH_PROJECT_NAME
}
site
>
/dev/null 2>&1
cd
site
if
git checkout gh-pages
;
then
git checkout
-b
gh-pages
;
fi
git
rm
-r
.
cp
-R
../dist/
*
.
cp
../dist/.
*
.
git add
-f
.
git config user.email
'travis@rdrei.net'
git config user.name
'TasteBot'
git commit
-am
'update the build files for gh-pages [ci skip]'
# Any command that using GH_OAUTH_TOKEN must pipe the output to /dev/null to not expose your oauth token
git push https://
${
GH_OAUTH_TOKEN
}
@github.com/
${
GH_OWNER
}
/
${
GH_PROJECT_NAME
}
HEAD:gh-pages
>
/dev/null 2>&1
else
changes
=
$(
get_changes
)
changes
=
$(
get_changes
)
if
[
"
${#
changes
}
"
=
0
]
then
exit
0
else
cd
tooling
&&
\
echo
$changes
| xargs ./run.sh
&&
\
cd
../tests
&&
\
echo
$changes
| xargs ./run.sh
fi
if
[
"
${#
changes
}
"
=
0
]
then
exit
0
else
cd
tooling
&&
\
echo
$changes
| xargs ./run.sh
&&
\
cd
../tests
&&
\
echo
$changes
| xargs ./run.sh
fi
exit
$?
exit
$?
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