mirror of
https://github.com/elyby/chrly.git
synced 2024-11-30 02:32:19 +05:30
Hello, Travis?
This commit is contained in:
parent
ce4dce49a2
commit
87a302c7da
34
.travis.yml
Normal file
34
.travis.yml
Normal 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
|
Loading…
Reference in New Issue
Block a user