mirror of
https://github.com/isar/rusqlite.git
synced 2025-02-17 05:18:13 +08:00
This is useful because currently, when using `rusqlite` in a Cargo workspace with one crate that uses `sqlcipher` and another that uses `bundled`, a build error will be triggered by an unqualified `cargo build` (as cargo will use the union of all features enabled by crates in the workspace). Instead of panicing, this just emits a warning, before (mostly) ignoring that the `bundled` feature was specified. Note: in this configuration, we still use our bundled bindings, to avoid changing `rusqlite` to handle this edge case (hence 'mostly').
51 lines
1.6 KiB
YAML
51 lines
1.6 KiB
YAML
sudo: false
|
|
|
|
language: rust
|
|
|
|
rust:
|
|
- stable
|
|
- beta
|
|
- nightly
|
|
|
|
matrix:
|
|
fast_finish: true
|
|
allow_failures:
|
|
- rust: nightly
|
|
|
|
addons:
|
|
apt:
|
|
packages: # recommanded versions for rust-bindgen
|
|
- llvm-3.9-dev
|
|
- libclang-3.9-dev
|
|
- libsqlcipher-dev
|
|
|
|
env: # specify the clang path for rust-bindgen
|
|
- LIBCLANG_PATH=/usr/lib/llvm-3.9/lib
|
|
|
|
script:
|
|
- cargo build
|
|
- cargo build --features bundled
|
|
- cargo build --features sqlcipher
|
|
- cargo build --features "bundled sqlcipher"
|
|
- cargo test
|
|
- cargo test --features backup
|
|
- cargo test --features blob
|
|
- cargo test --features functions
|
|
- cargo test --features hooks
|
|
- cargo test --features limits
|
|
- cargo test --features load_extension
|
|
- cargo test --features trace
|
|
- cargo test --features chrono
|
|
- cargo test --features serde_json
|
|
- cargo test --features url
|
|
- cargo test --features bundled
|
|
- cargo test --features sqlcipher
|
|
- cargo test --features i128_blob
|
|
- cargo test --features uuid
|
|
- cargo test --features "unlock_notify bundled"
|
|
- cargo test --features "array bundled csvtab vtab"
|
|
- cargo test --features "backup blob chrono csvtab functions hooks limits load_extension serde_json trace url vtab"
|
|
- cargo test --features "backup blob chrono csvtab functions hooks limits load_extension serde_json trace url vtab buildtime_bindgen"
|
|
- cargo test --features "backup blob chrono csvtab functions hooks limits load_extension serde_json trace url vtab bundled"
|
|
- cargo test --features "backup blob chrono csvtab functions hooks limits load_extension serde_json trace url vtab bundled buildtime_bindgen"
|