Skip to content

Commit

Permalink
add travis instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
cha87de committed Aug 15, 2019
1 parent 8003fae commit 6110972
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
language: go
go:
- '1.11.5'

services:
- docker

before_install:
- sudo apt-get -qq update
- sudo apt-get install -y rpm

install:
- mkdir -p $GOPATH/src/omi-gitlab.e-technik.uni-ulm.de/bwnetflow/kafka/
- ln -s $PWD $GOPATH/src/omi-gitlab.e-technik.uni-ulm.de/bwnetflow/kafka/consumer_dashboard
- go get -d -v ./...
- go build -o consumer -v

before_deploy:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin

deploy:
- provider: script
skip_cleanup: true
script: docker build --no-cache -t bwnetflow/dashboard:master . ; docker push bwnetflow/dashboard:master
on:
branch: master
#- provider: script
# script: rm -rf dist/linux_amd64; curl -sL https://git.io/goreleaser | bash
# on:
# tags: true
# condition: $TRAVIS_OS_NAME = linux

0 comments on commit 6110972

Please sign in to comment.