From 7ba13914e55c2a5e397a90db920f3b6e91e5bf9b Mon Sep 17 00:00:00 2001
From: "Olivier J.N. Bertrand" <olivier.bertrand@uni-bielefeld.de>
Date: Mon, 8 Jan 2018 21:33:07 +0100
Subject: [PATCH] Add a nice tool for building/testing/docing

---
 commands.sh | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)
 create mode 100644 commands.sh

diff --git a/commands.sh b/commands.sh
new file mode 100644
index 0000000..4ff8a56
--- /dev/null
+++ b/commands.sh
@@ -0,0 +1,36 @@
+#!/bin/bash
+install=''
+test=''
+doc=''
+
+while getopts 'it:d' flag; do
+  case "${flag}" in
+    i) install='true' ;;
+    t) test='true' ;;
+    d) doc='true' ;;
+    *) error "Unexpected option ${flag}" ;;
+  esac
+done
+
+if [ "$install" = 'true' ]; then
+echo '*****************************'
+echo '          Install            '
+echo '*****************************'
+python setup.py install
+fi
+
+if [ "$test" = 'true' ]; then
+echo '*****************************'
+echo '           Test              '
+echo '*****************************'
+python -m unittest discover navipy
+fi
+
+if [ "$doc" = 'true' ]; then
+echo '*****************************'
+echo '         Build doc           '
+echo '*****************************'
+cd doc
+make html
+cd ..
+fi
-- 
GitLab