From: Rob Golding Date: Tue, 18 Feb 2014 21:42:29 +0000 (+0000) Subject: Attempt to test with taskwarrior 2.2.0 as well as 2.3.0 X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/commitdiff_plain/650a8d36574f0d4141e69a5aa0562c447b56eaa1?ds=sidebyside;hp=--cc Attempt to test with taskwarrior 2.2.0 as well as 2.3.0 --- 650a8d36574f0d4141e69a5aa0562c447b56eaa1 diff --git a/.travis.yml b/.travis.yml index e8455dd..ba89600 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,20 +1,14 @@ language: python env: - - TASK_VERSION=2.3.0 + - BUILD_FROM_SOURCE=true TASK_VERSION=2.3.0 + - TASK_VERSION=2.2.0-3 python: - "2.6" - "2.7" - "3.2" - "3.3" install: - - pip install -e . - - sudo apt-get install -qq build-essential cmake uuid-dev - - wget http://www.taskwarrior.org/download/task-$TASK_VERSION.tar.gz - - tar -zxvf task-$TASK_VERSION.tar.gz - - cd task-$TASK_VERSION - - cmake . - - make - - sudo make install + - ./builddep.sh - task --version before_script: - cd $TRAVIS_BUILD_DIR diff --git a/builddep.sh b/builddep.sh new file mode 100755 index 0000000..26e3a3d --- /dev/null +++ b/builddep.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +if [[ $BUILD_FROM_SOURCE ]]; then + sudo apt-get install -qq build-essential cmake uuid-dev + wget http://www.taskwarrior.org/download/task-$TASK_VERSION.tar.gz + tar -zxvf task-$TASK_VERSION.tar.gz + cd task-$TASK_VERSION + cmake . + make + sudo make install +else + sudo apt-get install task=$TASK_VERSION +fi