Skip to content
This repository has been archived by the owner on Jan 15, 2019. It is now read-only.

Commit

Permalink
Merge pull request #5 from infotech-group/travis
Browse files Browse the repository at this point in the history
Oops!
  • Loading branch information
nextel authored May 26, 2017
2 parents 806d98c + 0a7ff16 commit 6e913f6
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,15 @@ go:
services:
docker


before_install:
- if [ ! -z "$TRAVIS_TAG" ]; then
export TRAVIS_TAG=`echo $TRAVIS_TAG | sed 's%[/_]%-%g'`;
else
export TRAVIS_TAG=test;
fi

script:
- go get -d -v ./...
- go test $(go list ./... | grep -v vendor)
- go build -v .
- docker build -t infotechgroup/migroman:test .

after_success:
- if [ ! -z "$TRAVIS_TAG" ]; then
export TRAVIS_TAG=`echo $TRAVIS_TAG | sed 's%[/_]%-%g'`;
docker build -t infotechgroup/migroman:$TRAVIS_TAG .
docker login -e="$DOCKER_EMAIL" -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
docker tag infotechgroup/migroman:$TRAVIS_TAG infotechgroup/migroman:latest;
docker push infotechgroup/migroman:$TRAVIS_TAG;
Expand Down

0 comments on commit 6e913f6

Please sign in to comment.