2
2
mirror of https://github.com/octoleo/restic.git synced 2024-06-05 18:40:49 +00:00
restic/vendor/github.com/ncw/swift/travis_realserver.sh

23 lines
615 B
Bash
Raw Normal View History

2017-07-23 12:24:45 +00:00
#!/bin/bash
set -e
2018-09-03 18:23:56 +00:00
if [ "${TRAVIS_PULL_REQUEST}" = "true" ]; then
2017-07-23 12:24:45 +00:00
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