-
Notifications
You must be signed in to change notification settings - Fork 725
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #949 from prose/travis-ci-merge
Pushes to master trigger deployment via travis
- Loading branch information
Showing
11 changed files
with
144 additions
and
3,237 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,22 @@ | ||
#!/usr/bin/env bash | ||
set -e # halt script on error | ||
|
||
# If this is the deploy branch, push it up to gh-pages | ||
echo "${DEPLOY_BRANCH}" | ||
echo "${GH_REF}" | ||
if [ $TRAVIS_PULL_REQUEST = "false" ] && [ $TRAVIS_BRANCH = ${DEPLOY_BRANCH} ]; then | ||
echo "Get ready, we're pushing to gh-pages!" | ||
mkdir site | ||
cp -a dist site | ||
cp -a img fonts index.html style-rtl.css locale.js site | ||
cd site | ||
git init | ||
git config user.name "Travis-CI" | ||
git config user.email "travis@somewhere.com" | ||
cp ../CNAME . | ||
git add . | ||
git commit -m "CI deploy to gh-pages" | ||
git push --force --quiet "https://${GH_TOKEN}@${GH_REF}" master:gh-pages | ||
else | ||
echo "Not a publishable branch so we're all done here" | ||
fi |
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
.DS_Store | ||
node_modules/ | ||
dist/* | ||
dist | ||
transifex.auth | ||
oauth.json | ||
.vimrc | ||
test/lib/index.js | ||
_site/ | ||
test/lib | ||
_site |
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 |
---|---|---|
@@ -1,5 +1,23 @@ | ||
language: node_js | ||
node_js: | ||
- '4.2' | ||
notifications: | ||
email: false | ||
env: | ||
global: | ||
- GH_REF=github.com/prose/prose.git | ||
- DEPLOY_BRANCH=master | ||
- secure: R+ZWJe6XOXit4QKOeQqlHw20k6CDuqDXEHo3SSkkdsEax+cWxIaKPv8C9zp+IA8SM32uz6DNkfo5wGUJ/HCUE/S3WZqlr7qijroshjsmcZPRx6+TxVRzE1Xp0iMbeGibSCFZGrWlJmYgHnq5rQAFtjiztNhkSmkhuq3d9nsg8xM= | ||
cache: | ||
directories: | ||
- node_modules | ||
before_install: | ||
- chmod +x ./.build_scripts/deploy.sh | ||
before_script: | ||
- npm test | ||
script: | ||
- npm run build | ||
deploy: | ||
provider: script | ||
skip_cleanup: true | ||
script: .build_scripts/deploy.sh | ||
on: | ||
branch: ${DEPLOY_BRANCH} |
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
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
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
Oops, something went wrong.