#!/bin/bash # # Simple script to run all tests with multiple test servers # across all supported Python versions # # Default test server running latest self-hosted site tput setaf 3 echo echo "Testing latest self-hosted site..." tput sgr0 export OPENPHOTO_TEST_CONFIG=test unset OPENPHOTO_TEST_SERVER_API tox $@ # Test server running APIv1 OpenPhoto instance tput setaf 3 echo echo "Testing APIv1 self-hosted site..." tput sgr0 export OPENPHOTO_TEST_CONFIG=test-apiv1 export OPENPHOTO_TEST_SERVER_API=1 tox $@ # Test account on hosted trovebox.com site tput setaf 3 echo echo "Testing latest hosted site..." tput sgr0 export OPENPHOTO_TEST_CONFIG=test-hosted unset OPENPHOTO_TEST_SERVER_API tox $@