#!/bin/sh
set -efux

# Install packages so that a user profile can be built
apt-get update
apt-get install vim python-flake8 python-autopep8 python-pip emacs toilet howdoi ack-grep nmap python-sh vim-fugitive devscripts python-webpy python-apt python-popcon rake bundler -y

update-apt-xapian-index

runuser -c "apprec --init" apprec
runuser -c "apprec --train" apprec

nosetests
