mirror of
https://github.com/eiblog/eiblog.git
synced 2026-02-07 07:12:27 +08:00
test travis
This commit is contained in:
20
.travis.yml
20
.travis.yml
@@ -1,3 +1,5 @@
|
||||
sudo: required
|
||||
|
||||
language: go
|
||||
|
||||
go:
|
||||
@@ -6,5 +8,19 @@ go:
|
||||
- 1.6
|
||||
- 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