Skip to content

Commit

Permalink
ci: Build docs in travis
Browse files Browse the repository at this point in the history
  • Loading branch information
cezarmathe committed May 5, 2020
1 parent 35f77e1 commit 375010d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,4 @@ before_install:
script:
- cargo fmt -- --check
- cargo clippy -- -D warnings
- RUSTFLAGS="--cfg travis_ci" cargo build -v
- RUSTFLAGS="--cfg travis_ci" cargo build -v --examples
- RUSTFLAGS="--cfg docs_rs" cargo doc --no-deps -v
2 changes: 1 addition & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ fn build() {
}

fn main() {
if cfg!(not(docs_rs)) && cfg!(not(travis_ci)) {
if cfg!(not(docs_rs)) {
println!("cargo:rustc-link-lib=btrfsutil");
}
build();
Expand Down

0 comments on commit 375010d

Please sign in to comment.