File: travis_realserver.sh

package info (click to toggle)
golang-github-ncw-swift 1.0.52-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, experimental, sid
  • size: 412 kB
  • sloc: python: 29; sh: 18; makefile: 4
file content (22 lines) | stat: -rwxr-xr-x 615 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
set -e

if [ "${TRAVIS_PULL_REQUEST}" = "true" ]; 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