![Grisha Kruglov](/assets/img/avatar_default.png)
Sync needs to operate over a "mentat transaction", not just a "db transaction". This shuffle allows internal mentat crates to consume InProgress, which models the concept of a "mentat transaction".
35 lines
1.5 KiB
YAML
35 lines
1.5 KiB
YAML
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:
|
|
allow_failures:
|
|
- rust: nightly
|
|
fast_finish: true
|
|
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 tests individually for subcrates that rely on `rusqlite`.
|
|
- |
|
|
for crate in "" "db" "db-traits" "ffi" "public-traits" "query-projector" "query-projector-traits" "query-pull" "sql" "tolstoy" "tolstoy-traits" "transaction" "tools/cli"; do
|
|
cargo test --manifest-path ./$crate/Cargo.toml --verbose --no-default-features --features sqlcipher
|
|
done
|
|
after_success:
|
|
- |
|
|
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
|