Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
travis: run tests pointing to rackspace and memset swift APIs
Ensuring we run our tests against real servers should help improve their reliability and also help finding errors that only happen in the real world. Tests are set as allowed failures for now to see how flaky they become. More cloud providers might be added in the future.
- Loading branch information
Showing
2 changed files
with
41 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
if [ ! "${TRAVIS_BRANCH}" = "master" ]; then | ||
exit 0 | ||
fi | ||
|
||
if [ "${TEST_REAL_SERVER}" = "rackspace" ] && [ ! -z "${RACKSPACE_APIKEY}" ]; then | ||
echo "Running tests pointing to Rackspace" | ||
export SWIFT_API_KEY=$RACKSPACE_APIKEY | ||
export SWIFT_API_USER=$RACKSPACE_USER | ||
export SWIFT_AUTH_URL=$RACKSPACE_AUTH | ||
go test ./... | ||
fi | ||
|
||
if [ "${TEST_REAL_SERVER}" = "memset" ] && [ ! -z "${MEMSET_APIKEY}" ]; then | ||
echo "Running tests pointing to Memset" | ||
export SWIFT_API_KEY=$MEMSET_APIKEY | ||
export SWIFT_API_USER=$MEMSET_USER | ||
export SWIFT_AUTH_URL=$MEMSET_AUTH | ||
go test | ||
fi |