Commit 2cb18aae authored by Gilles Quenot's avatar Gilles Quenot

add dependencies tests

parent a75da278
#!/bin/bash
#
#
# Quick-start script for new developers
# Usage: from repo root, `source bin/quickstart.sh`
# Usage: from repo root as current user, `bin/quickstart.sh`
#
# stop execution if there's an error
set -e
if ((UID==0)); then
echo >&2 "Thanks to use your current user to run this script, not root"
exit 1
fi
missing_deps=()
for x in psql virtualenv pip sudo; do
if ! type -p $x &>/dev/null; then
missing_deps+=($x)
fi
done
if ((${#missing_deps[@]} > 0)); then
echo -e >&2 "You need to install these dependencies with your package manager:\n${missing_deps[@]}"
exit 1
fi
REPOROOT=$(dirname $(dirname $0))
# Ensure we're at the root of the memopol repository
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment