Skip to content

Commit 2f29bba

Browse files
committed
Upload docs to travis CI
1 parent 81c24c7 commit 2f29bba

File tree

4 files changed

+20
-1
lines changed

4 files changed

+20
-1
lines changed

.travis.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,16 @@
11
language: rust
2+
script:
3+
- cargo build --verbose
4+
- cargo test --verbose
5+
- cargo doc
6+
after_success: |
7+
[ $TRAVIS_BRANCH = master ] &&
8+
[ $TRAVIS_PULL_REQUEST = false ] &&
9+
echo '<meta http-equiv=refresh content=0;url=glob/index.html>' > target/doc/index.html &&
10+
sudo pip install ghp-import &&
11+
ghp-import -n target/doc &&
12+
git push -fq https://${TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages
13+
14+
env:
15+
global:
16+
secure: I3a1njiqfFW9TpMKB715bpq3qHmsSmue/ahYbXhYbRoskWDWk+ruSKHS/X3nvSXY2Vv9oBCFaWldQvKdPtbpLYlfnIfquvUSzGzT3BW8bOAU6EY6+MQiToDln+xlcfjlSqBF4RGyrZtmuXzC1xXPKotG6jfUT1+7iOgaXLxyaRU=

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ authors = ["The Rust Project Developers"]
66
license = "MIT/Apache-2.0"
77
homepage = "https://github.com/rust-lang/glob"
88
repository = "https://github.com/rust-lang/glob"
9+
documentation = "http://doc.rust-lang.org/glob"
910
description = """
1011
Support for matching file paths against Unix shell style patterns.
1112
"""

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ Support for matching file paths against Unix shell style patterns.
55

66
[![Build Status](https://travis-ci.org/rust-lang/glob.svg?branch=master)](https://travis-ci.org/rust-lang/glob)
77

8+
[Documentation](http://doc.rust-lang.org/glob)
9+
810
## Usage
911

1012
To use `glob`, add this to your `Cargo.toml`:

src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
//! `glob`/`fnmatch` functions.
2222
2323
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
24-
html_favicon_url = "http://www.rust-lang.org/favicon.ico")]
24+
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
25+
html_root_url = "http://doc.rust-lang.org/glob/")]
2526

2627
use std::cell::Cell;
2728
use std::{cmp, os, path};

0 commit comments

Comments
 (0)