Publish playground to gh-pages

This commit is contained in:
Ray Schamp committed 2016-09-26 09:42:53 -04:00
1 parent a99f9ad5ff
commit 89f751e651
2 files changed
+18

No files matched your search

+16
View File
@@ -6,3 +6,19 @@ sudo: false
cache:
directories:
- node_modules
after_script:
- |
# RELEASE_BRANCHES and NPM_TOKEN defined in Travis settings panel
declare exitCode
$(npm bin)/travis-after-all
exitCode=$?
if [[
$exitCode = 0 &&
$RELEASE_BRANCHES =~ $TRAVIS_BRANCH &&
$TRAVIS_PULL_REQUEST = "false"
]]; then
./node_modules/.bin/gh-pages -x -r https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git -d playground -m "Travis build ${TRAVIS_BUILD_NUMBER}"
git config --global user.email $(git log --pretty=format:"%ce" -n1)
git config --global user.name $(git log --pretty=format:"%cn" -n1)
./node_modules/.bin/gh-pages -x -r https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git -d playground -m "Build for $(git log --pretty=format:%H)"
fi
+2
View File
@@ -20,6 +20,7 @@
"copy-webpack-plugin": "3.0.1",
"eslint": "2.7.0",
"expose-loader": "0.7.1",
"gh-pages": "0.11.0",
"highlightjs": "8.7.0",
"htmlparser2": "3.9.0",
"json-loader": "0.5.4",
@@ -30,6 +31,7 @@
"script-loader": "0.7.0",
"stats.js": "0.16.0",
"tap": "5.7.1",
"travis-after-all": "1.4.4",
"webpack": "1.13.0",
"webpack-dev-server": "1.14.1"
}