mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-30 00:34:26 +01:00
Merge pull request #37 from Kerollmops/install-travisci
Add travis-ci to check the codebase
This commit is contained in:
commit
8adfa0e431
22
.travis.yml
Normal file
22
.travis.yml
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
language: rust
|
||||||
|
|
||||||
|
cache: cargo
|
||||||
|
|
||||||
|
branches:
|
||||||
|
only:
|
||||||
|
- master
|
||||||
|
|
||||||
|
matrix:
|
||||||
|
fast_finish: true
|
||||||
|
include:
|
||||||
|
|
||||||
|
# Test crates on their minimum Rust versions.
|
||||||
|
- rust: 1.31.0
|
||||||
|
name: "meilidb on 1.31.0"
|
||||||
|
script: ./ci/meilidb.sh
|
||||||
|
|
||||||
|
# Test crates on nightly Rust.
|
||||||
|
- rust: nightly
|
||||||
|
name: "meilidb on nightly"
|
||||||
|
script: ./ci/meilidb.sh
|
||||||
|
|
@ -35,6 +35,7 @@ default = ["simd"]
|
|||||||
i128 = ["bincode/i128", "byteorder/i128"]
|
i128 = ["bincode/i128", "byteorder/i128"]
|
||||||
simd = ["rocksdb/sse"]
|
simd = ["rocksdb/sse"]
|
||||||
portable = ["rocksdb/portable"]
|
portable = ["rocksdb/portable"]
|
||||||
|
nightly = []
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
csv = "1.0"
|
csv = "1.0"
|
||||||
|
15
ci/meilidb.sh
Executable file
15
ci/meilidb.sh
Executable file
@ -0,0 +1,15 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
cd "$(dirname "$0")"/..
|
||||||
|
set -ex
|
||||||
|
|
||||||
|
export RUSTFLAGS="-D warnings"
|
||||||
|
|
||||||
|
cargo check --no-default-features
|
||||||
|
cargo check --bins --examples --tests
|
||||||
|
cargo test
|
||||||
|
|
||||||
|
if [[ "$TRAVIS_RUST_VERSION" == "nightly" ]]; then
|
||||||
|
cargo check --no-default-features --features nightly
|
||||||
|
cargo test --features nightly
|
||||||
|
fi
|
Loading…
Reference in New Issue
Block a user