solar/run_tests.sh
2015-05-13 12:25:06 +02:00

25 lines
485 B
Bash
Executable File

#!/bin/bash
set -e
VENV=x-venv
CONFIG_FILE=$WORKSPACE/jenkins-config.yaml
# Setup a proper path, I call my virtualenv dir "$VENV" and
# I've got the virtualenv command installed in /usr/local/bin
PATH=$WORKSPACE/venv/bin:/usr/local/bin:$PATH
if [ ! -d "$VENV" ]; then
virtualenv -p python2 $VENV
fi
. $VENV/bin/activate
pip install -r requirements.txt --download-cache=/tmp/$JOB_NAME
pushd x
PYTHONPATH=$WORKSPACE CONFIG_FILE=$CONFIG_FILE python test/test_signals.py
popd