summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2017-02-03 14:15:27 +0100
committerMatthias Beyer <mail@beyermatthias.de>2017-02-03 14:57:17 +0100
commitb10d0fa623121b6d2404bc4d672fb08b6ac79828 (patch)
tree0a3619535b8df3a72d654b76b780e06978ffe19f
parent85589f29f9b104ea9cac1620939bf26a91f53dce (diff)
Add travis setup to test example
-rw-r--r--.travis.yml17
1 files changed, 17 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index c27ede9..5656cfb 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -6,6 +6,23 @@ rust:
matrix:
allow_failures:
- rust: nightly
+before_install:
+ - sudo apt-get -y install task
+script: |
+ cargo build
+ cargo test
+
+ # prepare taskwarrior, initial setup
+ yes | task
+
+ for n in create_task; do
+ cargo run --example "$n" | tee /tmp/"$n"
+ task import /tmp/"$n" || exit 0
+
+ # delete all tasks
+ yes | task delete
+ done
+
after_success: |
[ $TRAVIS_BRANCH = master ] &&
[ $TRAVIS_PULL_REQUEST = false ] &&