Skip to content

Commit 4327142

Browse files
authored
Adding Travis CI config (#11)
* Adding Travis CI config * Updated travis config * Updated test script * Fixing a test to use explicit credentials (without this it won't work reliably in Travis)
1 parent f30e22b commit 4327142

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
language: go
2+
go_import_path: firebase.google.com/go
3+
script: go test -v -test.short ./...
4+

firebase_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ func TestInvalidCredentialFile(t *testing.T) {
190190
}
191191

192192
func TestAuth(t *testing.T) {
193-
app, err := NewApp(context.Background(), nil)
193+
app, err := NewApp(context.Background(), nil, option.WithCredentialsFile("testdata/service_account.json"))
194194
if err != nil {
195195
t.Fatal(err)
196196
}

0 commit comments

Comments
 (0)