Skip to content

Commit

Permalink
cloud: run integration tests on travis
Browse files Browse the repository at this point in the history
Change-Id: I6aafefe038c9a5aa5598b353d8cdaf5f2a42df00
  • Loading branch information
rakyll committed Dec 10, 2014
1 parent eaf111a commit 86c1a90
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
13 changes: 6 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
language: go

go:
- 1.3
- tip

- 1.3
- tip
install:
- go get -v google.golang.org/cloud/...

- go get -v google.golang.org/cloud/...
script:
- go test -v google.golang.org/cloud/...
- openssl aes-256-cbc -K $encrypted_912ff8fa81ad_key -iv $encrypted_912ff8fa81ad_iv -in key.json.enc -out key.json -d
- GCLOUD_TESTS_GOLANG_PROJECT_ID="dulcet-port-762" GCLOUD_TESTS_GOLANG_KEY="$(pwd)/key.json"
go test -v -tags=integration google.golang.org/cloud/...
Binary file added key.json.enc
Binary file not shown.
4 changes: 2 additions & 2 deletions storage/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ var (
copyObj = "copy-object"
)

const envBucket = "GCLOUD_TESTS_GOLANG_BUCKET_NAME"
const envBucket = "GCLOUD_TESTS_GOLANG_PROJECT_ID"

func TestObjects(t *testing.T) {
ctx := testutil.Context(ScopeFullControl)
Expand Down Expand Up @@ -222,7 +222,7 @@ func cleanup(t *testing.T, prefix string) {
for {
o, err := ListObjects(ctx, bucket, q)
if err != nil {
t.Fatalf("Cleanup List failed with error: %v", err)
t.Fatalf("Cleanup List for bucket %v failed with error: %v", bucket, err)
}
for _, obj := range o.Results {
t.Logf("Cleanup deletion of %v", obj.Name)
Expand Down

0 comments on commit 86c1a90

Please sign in to comment.