Skip to content

Commit

Permalink
restore devappserver stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
gfr10598 committed Oct 5, 2017
1 parent c065de6 commit 77f045d
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
#
language: go

# sudo: required
# Without this, annotator.sh fails, related to gcloud.
sudo: required

go:
- 1.8
Expand All @@ -18,6 +19,9 @@ before_install:
- go get github.com/mattn/goveralls
- go get github.com/wadey/gocovmerge

# This installs gcloud, sets up devappserver.
- $TRAVIS_BUILD_DIR/annotator.sh

# NB: Encrypted values are not defined in forks or pull requests.
#
# Decrypt the tar archive containing the GCP service account key files.
Expand All @@ -38,15 +42,19 @@ cache:
- $HOME/google-cloud-sdk/

script:
- export GOOGLE_APPLICATION_CREDENTIALS="${HOME}/gcloud-service-key.json"
- export APPENGINE_DEV_APPSERVER="${HOME}/google-cloud-sdk/bin/dev_appserver.py"
- source "${HOME}/google-cloud-sdk/path.bash.inc"
#- go test -v ./...

- go test -covermode=count -coverprofile=handler.cov -v github.com/m-lab/annotation-service/handler
- go test -covermode=count -coverprofile=loader.cov -v github.com/m-lab/annotation-service/loader
- go test -covermode=count -coverprofile=metrics.cov -v github.com/m-lab/annotation-service/metrics
- go test -covermode=count -coverprofile=parser.cov -v github.com/m-lab/annotation-service/parser
- go test -covermode=count -coverprofile=search.cov -v github.com/m-lab/annotation-service/search

# Coveralls
- $HOME/gopath/bin/gocovmerge handler.cov loader.cov metrics.cov parser.cov search.cov
> merge.cov
- $HOME/gopath/bin/gocovmerge handler.cov loader.cov parser.cov search.cov > merge.cov
- $HOME/gopath/bin/goveralls -coverprofile=merge.cov -service=travis-ci

# Build and prepare for deployment
Expand Down

0 comments on commit 77f045d

Please sign in to comment.