Skip to content

Commit

Permalink
Merge pull request #2 from NYTimes/travis
Browse files Browse the repository at this point in the history
Adding Travis CI
  • Loading branch information
jprobinson authored Dec 21, 2016
2 parents 80eda6b + 02e918d commit ecfc5b0
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
language: go

services:
- docker

go:
- 1.7

env:
- CGO_ENABLED=0

script:
- go vet
- go test
- go build -ldflags "-s -w -X main.build=$TRAVIS_BUILD_NUMBER -X main.rev=$TRAVIS_COMMIT" -a -tags netgo

after_success:
- if [ "$TRAVIS_BRANCH" == "master" ]; then
docker build -t "nytimes/drone-gae:latest" .;
docker login -e="$DOCKER_EMAIL" -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
docker push "nytimes/drone-gae:latest";
fi

0 comments on commit ecfc5b0

Please sign in to comment.