solar/run_tests.sh
Przemyslaw Kaminski e86ac3f837 Added resource validation
- uses jsonschema
2015-05-21 13:55:23 +02:00

26 lines
585 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 solar/solar
PYTHONPATH=$WORKSPACE/solar CONFIG_FILE=$CONFIG_FILE python test/test_signals.py
PYTHONPATH=$WORKSPACE/solar CONFIG_FILE=$CONFIG_FILE python test/test_validation.py
popd