Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update travis to publish docs on successful master build #148

Merged
merged 1 commit into from
Dec 13, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
language: rust
sudo: required
after_success: |
[ $TRAVIS_BRANCH = master ] &&
[ $TRAVIS_PULL_REQUEST = false ] &&
cargo doc &&
echo "<meta http-equiv=refresh content=0;url=neon/index.html>" > target/doc/index.html &&
Copy link
Contributor Author

@jedireza jedireza Dec 13, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here we redirect index.html (which doesn't have any content) to neon/index.html. This is also because we're going to be hosting the neon-sys and cslice crate docs.

sudo pip install ghp-import &&
ghp-import -n target/doc &&
git push -fq https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages
dist: trusty
rust:
- stable
Expand All @@ -13,6 +21,8 @@ env:
- TRAVIS_NODE_VERSION="5"
- TRAVIS_NODE_VERSION="5.11"
- TRAVIS_NODE_VERSION="4.2"
global:
secure: AfBML/eCzgjt0isvdGKWICrOl9jTD7Dwu7SH91hqsRngcIgvvClyNDd5oANnx5S6b4uUSH0O93hTO4k8RKynY5jFOPcq36LVpEiB/LdJTq6V0tnbjyllVX0Z45GUEB3Cs6LqPzE+UzPscftAJ3F1NuHRy+KMxLYubJQGqZVKGHOrtTe+OsWVudkZmXweFtQXO4YU1o1tWvjQFpGOLmIXGaWCtNDZRdAHbZmwOOefhRGoR8vzafwNROV8W+6Xn14Bsea/WT3/AXjrYUQH5GpIjjw58kjccAL/+PaJ+5aGpHCu3wx9YyG+bxvYfW99cU9vU/g6ZHGtdFPaqNX4jiGKo1Y4fcMqXCL3UutCVRyTMAAfZH4CdEWUyYVFygKrdZW2NXBEKatxqZYFwNtmjDrhbvdTvsVdFyc9rR+IzOGmz81ejpm+bMBOZRG/1L09/LljX8x2hxUHvNZHGnDSvhkrK5lT+CtzmXINmgjR9KszaaEInCQ/i0xinBpMw8rxwfiZFVIkAGOUBMDBagmkXjhBmQz4MS6QAzv3Mwwu6fasYnnlqC+m+jkWstQ/Rgl08CwfuXttrQLKI5lwSOSnTK257MQ9jHQJ4umXDLHhCteKPuauMEWIkWOmftH+HUnPyNhUmoU8CUF/EUCDT7p7ZQZQhZVsC622pzcgr0mm9kbJIIM=
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is my existing token setup for Travis (as per the linked blog post). Unless I missed something, these don't exist for GitHub Organizations, but only for individual users.


install:
- . $HOME/.nvm/nvm.sh
Expand Down