mirror of
https://github.com/eiblog/eiblog.git
synced 2026-02-23 06:32:28 +08:00
test travis
This commit is contained in:
18
.travis.yml
18
.travis.yml
@@ -1,3 +1,5 @@
|
|||||||
|
sudo: required
|
||||||
|
|
||||||
language: go
|
language: go
|
||||||
|
|
||||||
go:
|
go:
|
||||||
@@ -6,5 +8,19 @@ go:
|
|||||||
- 1.6
|
- 1.6
|
||||||
- 1.7
|
- 1.7
|
||||||
|
|
||||||
go_import_path:
|
service:
|
||||||
|
- docker
|
||||||
|
|
||||||
|
before_install:
|
||||||
|
- curl https://glide.sh/get | sh
|
||||||
|
|
||||||
|
script:
|
||||||
|
- glide up
|
||||||
|
- CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build
|
||||||
|
- docker build -t registry.cn-hangzhou.aliyuncs.com/deepzz/eiblog .
|
||||||
|
|
||||||
|
after_success:
|
||||||
|
- if [ "$TRAVIS_BRANCH" == "master" ]; then
|
||||||
|
docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" registry.cn-hangzhou.aliyuncs.com;
|
||||||
|
docker push registry.cn-hangzhou.aliyuncs.com/deepzz/eiblog;
|
||||||
|
fi
|
||||||
Reference in New Issue
Block a user