2016-12-16 18:45:58 +00:00
|
|
|
language: rust
|
2018-06-14 20:23:17 +00:00
|
|
|
# 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
|
2018-06-13 16:35:41 +00:00
|
|
|
rust:
|
2018-08-22 15:34:25 +00:00
|
|
|
- 1.25.0
|
2018-06-13 16:35:41 +00:00
|
|
|
- stable
|
|
|
|
- beta
|
|
|
|
- nightly
|
|
|
|
matrix:
|
|
|
|
allow_failures:
|
|
|
|
- rust: nightly
|
|
|
|
fast_finish: true
|
2018-08-22 15:34:25 +00:00
|
|
|
jobs:
|
|
|
|
include:
|
|
|
|
- stage: "Test iOS"
|
|
|
|
rust: 1.25.0
|
|
|
|
script: ./scripts/test-ios.sh
|
|
|
|
- stage: "Docs"
|
|
|
|
rust: 1.25.0
|
|
|
|
script: ./scripts/cargo-doc.sh
|
2016-12-16 22:26:10 +00:00
|
|
|
script:
|
2017-02-20 18:58:56 +00:00
|
|
|
- cargo test --verbose --all
|
2018-07-19 17:03:19 +00:00
|
|
|
- cargo test --features edn/serde_support --verbose --all
|
2018-06-14 20:23:17 +00:00
|
|
|
# We can't pick individual features out with `cargo test --all` (At the time of this writing, this
|
2018-06-14 20:30:03 +00:00
|
|
|
# works but does the wrong thing because of a bug in cargo, but its fix will be to disallow doing
|
2018-06-14 20:23:17 +00:00
|
|
|
# this all-together, see https://github.com/rust-lang/cargo/issues/5364 for more information). To
|
2018-08-20 23:09:16 +00:00
|
|
|
# work around this, we run tests individually for subcrates that rely on `rusqlite`.
|
2018-06-14 20:23:17 +00:00
|
|
|
- |
|
2018-08-15 20:55:46 +00:00
|
|
|
for crate in "" "db" "db-traits" "ffi" "public-traits" "query-projector" "query-projector-traits" "query-pull" "sql" "tolstoy" "tolstoy-traits" "transaction" "tools/cli"; do
|
2018-08-20 23:09:16 +00:00
|
|
|
cargo test --manifest-path ./$crate/Cargo.toml --verbose --no-default-features --features sqlcipher
|
2018-06-14 20:23:17 +00:00
|
|
|
done
|
2018-06-13 16:35:41 +00:00
|
|
|
cache: cargo
|