-
Notifications
You must be signed in to change notification settings - Fork 175
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
os: | ||
- linux | ||
script: | ||
- npm test | ||
env: | ||
global: | ||
secure: RAEgFh9Ew0ePGJgrRU7WHuz2iUPc8GbrjW2tg5jsNvLawiswz1uO5CFF84vQtTVMgu4GDRM/JdH23FEfSfS705GlG1d4IsBDk27tVAbFDl9GTJejUkXRX6FY1tJovxp+EKX7ufEX3sjRwKeJXa14Fbxli4HMI0U6D1cgN6ddS84= | ||
after_success: ./ghpages.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# This is meant to be run by Travis to autogenerate the ghpages on commits to master | ||
if [ "$TRAVIS_BRANCH" = 'master' ] && [ "$TRAVIS_PULL_REQUEST" = 'false' ]; then | ||
|
||
# Remove build/test folders | ||
rm -rf ./bin ./src ./js | ||
|
||
# Remove packaging files | ||
rm -f emscript.sh reemscript.sh ./bower.json ./package.json CONTRIBUTING.md | ||
|
||
# Move dist to root | ||
# As the examples grow more developed, this may need to be migrated (to Jekyll, &c.) | ||
cp -fR ./dist/* ./ | ||
rm -rf ./dist | ||
|
||
# Push the ghpages | ||
git add --all | ||
git config user.name "Zach Pomerantz" | ||
git config user.email "[email protected]" | ||
git commit -m "(docs-autogen) ${TRAVIS_REPO_SLUG}." | ||
git push -fq "https://${TOKEN}:[email protected]/zzmp/juliusjs.git" HEAD:gh-pages | ||
|
||
fi |