-
Notifications
You must be signed in to change notification settings - Fork 5
/
quick.sh
executable file
·28 lines (22 loc) · 1.05 KB
/
quick.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/env bash -e
# First run (do this manually):
# $ vagrant box add \
# http://build.clusterhq.com/results/vagrant/master/flocker-tutorial.json
# $ admin/run-powerstrip-acceptance-tests \
# --keep --distribution=fedora-20 powerstripflocker.test.test_acceptance
# This will set up some VMs, which will take a while.
# Then you can run the following to do fast development cycles (replace
# 'lmarsden' or 'clusterhq' with your own repo here and in test_acceptance.py
# if necessary):
# Run ./quick.sh --no-build to make it even quicker (if you've only changed the
# acceptance test and not the actual adapter).
# This should match up with DOCKER_PULL_REPO in powerstripflocker/test/test_acceptance.py
DOCKER_PULL_REPO="lmarsden"
# Optionally do a docker build and push.
if [ "$1" != "--no-build" ]; then
docker build -t ${DOCKER_PULL_REPO}/powerstrip-flocker .
docker push ${DOCKER_PULL_REPO}/powerstrip-flocker
fi
# Run the tests.
export FLOCKER_ACCEPTANCE_NODES="172.16.255.240:172.16.255.241"
trial ${2:-powerstripflocker.test.test_acceptance}