Make Rust a section
This commit is contained in:
parent
f8478835a2
commit
70501eb720
1 changed files with 85 additions and 32 deletions
117
.travis.yml
117
.travis.yml
|
@ -1,35 +1,88 @@
|
||||||
language: rust
|
|
||||||
# We use OSX so that we can get a reasonably up to date version of SQLCipher.
|
|
||||||
# (The version in Travis's default Ubuntu Trusty is much too old).
|
|
||||||
os: osx
|
|
||||||
before_install:
|
|
||||||
- brew install sqlcipher --with-fts
|
|
||||||
rust:
|
|
||||||
- 1.25.0 # Must align with `build/version.rs`.
|
|
||||||
- stable
|
|
||||||
- beta
|
|
||||||
- nightly
|
|
||||||
matrix:
|
matrix:
|
||||||
|
fast_finish: true
|
||||||
allow_failures:
|
allow_failures:
|
||||||
- rust: nightly
|
- rust: nightly
|
||||||
fast_finish: true
|
include:
|
||||||
script:
|
- language: rust
|
||||||
- cargo test --verbose --all
|
# We use OSX so that we can get a reasonably up to date version of SQLCipher.
|
||||||
- cargo test --features edn/serde_support --verbose --all
|
# (The version in Travis's default Ubuntu Trusty is much too old).
|
||||||
# We can't pick individual features out with `cargo test --all` (At the time of this writing, this
|
os: osx
|
||||||
# works but does the wrong thing because of a bug in cargo, but its fix will be to disallow doing
|
before_install:
|
||||||
# this all-together, see https://github.com/rust-lang/cargo/issues/5364 for more information). To
|
- brew install sqlcipher --with-fts
|
||||||
# work around this, we run individual tests for each subcrate individually.
|
rust: 1.25.0 # Must align with `build/version.rs`.
|
||||||
- |
|
script:
|
||||||
for manifest in $(find . -type f -name Cargo.toml); do
|
- cargo test --verbose --all
|
||||||
cargo test --manifest-path $manifest --verbose --no-default-features --features sqlcipher
|
- cargo test --features edn/serde_support --verbose --all
|
||||||
done
|
# We can't pick individual features out with `cargo test --all` (At the time of this writing, this
|
||||||
after_success:
|
# works but does the wrong thing because of a bug in cargo, but its fix will be to disallow doing
|
||||||
- |
|
# this all-together, see https://github.com/rust-lang/cargo/issues/5364 for more information). To
|
||||||
if [[ "$TRAVIS_PULL_REQUEST" = "false" && "$TRAVIS_BRANCH" == "master" ]]; then
|
# work around this, we run individual tests for each subcrate individually.
|
||||||
cargo doc &&
|
- |
|
||||||
echo "<meta http-equiv=refresh content=0;url=mentat/index.html>" > target/doc/index.html &&
|
for manifest in $(find . -type f -name Cargo.toml); do
|
||||||
git clone https://github.com/davisp/ghp-import.git &&
|
cargo test --manifest-path $manifest --verbose --no-default-features --features sqlcipher
|
||||||
./ghp-import/ghp_import.py -n -p -f -r https://"$GH_TOKEN"@github.com/"$TRAVIS_REPO_SLUG.git" target/doc
|
done
|
||||||
fi
|
after_success:
|
||||||
cache: cargo
|
- |
|
||||||
|
if [[ "$TRAVIS_PULL_REQUEST" = "false" && "$TRAVIS_BRANCH" == "master" ]]; then
|
||||||
|
cargo doc &&
|
||||||
|
echo "<meta http-equiv=refresh content=0;url=mentat/index.html>" > target/doc/index.html &&
|
||||||
|
git clone https://github.com/davisp/ghp-import.git &&
|
||||||
|
./ghp-import/ghp_import.py -n -p -f -r https://"$GH_TOKEN"@github.com/"$TRAVIS_REPO_SLUG.git" target/doc
|
||||||
|
fi
|
||||||
|
cache: cargo
|
||||||
|
- language: rust
|
||||||
|
# We use OSX so that we can get a reasonably up to date version of SQLCipher.
|
||||||
|
# (The version in Travis's default Ubuntu Trusty is much too old).
|
||||||
|
os: osx
|
||||||
|
before_install:
|
||||||
|
- brew install sqlcipher --with-fts
|
||||||
|
rust: stable
|
||||||
|
script:
|
||||||
|
- cargo test --verbose --all
|
||||||
|
- cargo test --features edn/serde_support --verbose --all
|
||||||
|
# We can't pick individual features out with `cargo test --all` (At the time of this writing, this
|
||||||
|
# works but does the wrong thing because of a bug in cargo, but its fix will be to disallow doing
|
||||||
|
# this all-together, see https://github.com/rust-lang/cargo/issues/5364 for more information). To
|
||||||
|
# work around this, we run individual tests for each subcrate individually.
|
||||||
|
- |
|
||||||
|
for manifest in $(find . -type f -name Cargo.toml); do
|
||||||
|
cargo test --manifest-path $manifest --verbose --no-default-features --features sqlcipher
|
||||||
|
done
|
||||||
|
cache: cargo
|
||||||
|
- language: rust
|
||||||
|
# We use OSX so that we can get a reasonably up to date version of SQLCipher.
|
||||||
|
# (The version in Travis's default Ubuntu Trusty is much too old).
|
||||||
|
os: osx
|
||||||
|
before_install:
|
||||||
|
- brew install sqlcipher --with-fts
|
||||||
|
rust: beta
|
||||||
|
script:
|
||||||
|
- cargo test --verbose --all
|
||||||
|
# We can't pick individual features out with `cargo test --all` (At the time of this writing, this
|
||||||
|
# works but does the wrong thing because of a bug in cargo, but its fix will be to disallow doing
|
||||||
|
# this all-together, see https://github.com/rust-lang/cargo/issues/5364 for more information). To
|
||||||
|
# work around this, we run individual tests for each subcrate individually.
|
||||||
|
- |
|
||||||
|
for manifest in $(find . -type f -name Cargo.toml); do
|
||||||
|
cargo test --manifest-path $manifest --verbose --no-default-features --features sqlcipher
|
||||||
|
done
|
||||||
|
cache: cargo
|
||||||
|
- language: rust
|
||||||
|
# We use OSX so that we can get a reasonably up to date version of SQLCipher.
|
||||||
|
# (The version in Travis's default Ubuntu Trusty is much too old).
|
||||||
|
os: osx
|
||||||
|
before_install:
|
||||||
|
- brew install sqlcipher --with-fts
|
||||||
|
rust: nightly
|
||||||
|
script:
|
||||||
|
- cargo test --verbose --all
|
||||||
|
- cargo test --features edn/serde_support --verbose --all
|
||||||
|
# We can't pick individual features out with `cargo test --all` (At the time of this writing, this
|
||||||
|
# works but does the wrong thing because of a bug in cargo, but its fix will be to disallow doing
|
||||||
|
# this all-together, see https://github.com/rust-lang/cargo/issues/5364 for more information). To
|
||||||
|
# work around this, we run individual tests for each subcrate individually.
|
||||||
|
- |
|
||||||
|
for manifest in $(find . -type f -name Cargo.toml); do
|
||||||
|
cargo test --manifest-path $manifest --verbose --no-default-features --features sqlcipher
|
||||||
|
done
|
||||||
|
cache: cargo
|
||||||
|
|
Loading…
Reference in a new issue