From 1ca1df3e36895d4234e65b091b723d0d163da65d Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sun, 7 Aug 2016 17:13:52 +0200 Subject: [PATCH] Only call travis-cargo test for lib crates --- .travis.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index e73af1c5..81d79be1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -35,7 +35,13 @@ script: cd "$1" && { travis-cargo -q build && - travis-cargo -q test && + { + if [[ $(echo "$1" | grep lib) ]]; then + travis-cargo -q test + else + true + fi + } && cd - } || exit 1 }