Hello, Travis?

This commit is contained in:
ErickSkrauch 2018-02-16 00:46:20 +03:00
parent ce4dce49a2
commit 87a302c7da
No known key found for this signature in database
GPG Key ID: 669339FCBB30EE0E

34
.travis.yml Normal file
View File

@ -0,0 +1,34 @@
sudo: required
language: go
go:
- 1.9
services:
- docker
stages:
- test
- publish
before_install:
- go get -u github.com/golang/dep/cmd/dep
jobs:
include:
- stage: test
script:
- dep ensure
- go test ./...
- stage: publish
script:
- docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
- dep ensure
- >
env GOOS=linux
go build
-o release/chrly
-ldflags "-X github.com/elyby/chrly/bootstrap.version=latest"
main.go
- docker build -t elyby/chrly .
- docker push elyby/chrly