and again, again, agian...

This commit is contained in:
DavidBadura 2015-12-24 10:22:32 +00:00
parent fe48b95c53
commit 2e42fbd593
4 changed files with 13 additions and 4 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
composer.phar composer.phar
composer.lock composer.lock
vendor/ vendor/
build/

View File

@ -15,6 +15,7 @@ cache:
directories: directories:
- $HOME/.composer/cache - $HOME/.composer/cache
- vendor - vendor
- build
php: php:
- 5.4 - 5.4
@ -36,9 +37,7 @@ matrix:
- php: hhvm - php: hhvm
install: install:
- cd build
- bash build.sh $TASKWARRIOR - bash build.sh $TASKWARRIOR
- cd ..
- ln -s build/taskwarrior-$TASKWARRIOR task - ln -s build/taskwarrior-$TASKWARRIOR task
- chmod +x ./task - chmod +x ./task
- ./task --version - ./task --version

11
build/build.sh → build.sh Executable file → Normal file
View File

@ -2,7 +2,15 @@
TASKWARRIOR=$1 TASKWARRIOR=$1
wget http://taskwarrior.org/download/task-$TASKWARRIOR.tar.gz [ -d build ] || mkdir build
if [ -f build/taskwarrior-$TASKWARRIOR ]
then
exit;
fi
cd build
wget http://taskwarrior.org/download/task-$TASKWARRIOR.tar.gz || exit
gunzip task-$TASKWARRIOR.tar.gz gunzip task-$TASKWARRIOR.tar.gz
tar xf task-$TASKWARRIOR.tar tar xf task-$TASKWARRIOR.tar
cd task-$TASKWARRIOR cd task-$TASKWARRIOR
@ -11,3 +19,4 @@ make
cd .. cd ..
cp task-$TASKWARRIOR/src/task ./taskwarrior-$TASKWARRIOR cp task-$TASKWARRIOR/src/task ./taskwarrior-$TASKWARRIOR
sudo rm -Rf task-$TASKWARRIOR* sudo rm -Rf task-$TASKWARRIOR*
cd ..

Binary file not shown.