e86ac3f837
- uses jsonschema
26 lines
585 B
Bash
Executable File
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
|