You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

22 lines
435 B

#!/bin/bash
set -e
ref=$1
what=$2
d=../infrastructure-versions/$ref/infrastructure
deactivate || true
if ! test -d $d ; then
mkdir -p ../infrastructure-versions/$ref
git clone --reference . . $d
git -C $d checkout $what
cp -a bootstrap dev-links.sh $d
cd $d
source bootstrap
./dev-links.sh
else
cd $d
source ../virtualenv/bin/activate
fi
tox -e $what -- --enough-no-destroy playbooks/$what/tests