Add jenkins.sh to test and build

Also rearrange build_artefact.sh and run_tests.sh to be a bit more
consistent and expect a virtualenv to already be activated.