HiveMinds / tw-install

Automatically installs Taskwarrior, Taskserver (TODO: and Timewarrior). This project aims to support automated installation of all Taskwarrior hook scripts, configuration flavours etc. with a single command.
GNU Affero General Public License v3.0
17 stars 7 forks source link
installer taskwarrior2

Taskwarrior Installer

Build Status

This installs (the old, 2.6.0) taskwarrior and taskwarrior server for you on an Ubuntu device (or on Windows with the WSL app, I did not try Mac yet.) with 2 simple commands. In my experience Taskwarrior (and Timewarrior) are increadibly powerfull tools to monitor and improve your effectiveness in many aspects of life, yet I found setting it up a bit challenging, so I automated the procedure.

Warning

After running this, vscode would not launched, which was resolved by running:

sudo chmod 755 /var

Thanks to this answer.

How to help

How to use (for users)

Run the Taskwarrior installer from the root of this repository with:

git clone git@github.com:HiveMinds/tw-install.git install
cd install
chmod +x tw-install.sh
./tw-install.sh

That's it, you can now add tasks with: task add make pancakes and sync it with your own taskwarrior server with: task sync :)

Uninstall taskwarrior and taskserver it with:

chmod +x tw-uninstall.sh
./tw-uninstall.sh

(Currently) you have to reboot the system before you install it again using the tw-install.sh file.

Docker (not working)

Build

docker build -t tw-install .

Run container

docker run \
-p 53589:53589 \
-e TW_USERNAME=First \
-e TW_ORGANISATION=Public \
--name tw-instance \
-d \
tw-install 

How to use (for developers)

First install the required submodules with:

cd ~/.task
git clone git@github.com:HiveMinds/tw-install.git install
cd install
rm -r test/libs/*
chmod +x install-bats-libs.sh
./install-bats-libs.sh

Next, run the unit tests with:

chmod +x test.sh
./test.sh

Note: Put your unit test files (with extention .bats) in folder: /test/