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

update travis to publish docs on successful master build #148

merged 1 commit into from
Dec 13, 2016

Conversation

jedireza
Copy link
Contributor

@jedireza jedireza commented Dec 13, 2016

Here is a handy reference blog post for doing this:

[ $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.

@@ -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.

@dherman
Copy link
Collaborator

dherman commented Dec 13, 2016

So awesome! About to sit down for dinner but I will merge this tonight and then maybe make a few tweaks to include the couple other doc pages too.

@jedireza jedireza mentioned this pull request Dec 13, 2016
@dherman dherman merged commit 18e9ba0 into neon-bindings:master Dec 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants