Actually we can build libs with cargo-test and bins with cargo-build

This commit is contained in:
Matthias Beyer 2016-08-07 20:37:01 +02:00
parent 1ca1df3e36
commit 04d647f218

View file

@ -34,12 +34,11 @@ script:
[[ -d "$1" ]] && [[ -d "$1" ]] &&
cd "$1" && cd "$1" &&
{ {
travis-cargo -q build &&
{ {
if [[ $(echo "$1" | grep lib) ]]; then if [[ $(echo "$1" | grep lib) ]]; then
travis-cargo -q test travis-cargo -q test
else else
true travis-cargo -q build
fi fi
} && } &&
cd - cd -