chore: Add travis-ci to check the codebase

This commit is contained in:
Clément Renault
2018-12-17 15:52:49 +01:00
parent 26fbb46253
commit c01613df40
3 changed files with 38 additions and 0 deletions

15
ci/meilidb.sh Executable file
View 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