This commit is contained in:
deepzz0
2016-10-02 12:23:22 +08:00
parent d31dbe10e0
commit 8dbc95f85d
6 changed files with 22 additions and 23 deletions

View File

@@ -1,24 +1,30 @@
sudo: required
dist: trusty
sudo: required # 声明构建语言环境
dist: trusty # 在ubuntu:trusty
notifications: # 每次构建的时候是否通知如果不想收到通知邮箱个人感觉邮件贼烦那就设置false吧
email: false
language: go
language: go # 声明构建语言环境
go:
go: # 只构建最新版本
- tip
service:
service: # docker环境
- docker
branches: # 限定项目分支
only:
- master
before_install:
- curl https://glide.sh/get | sh
- curl https://glide.sh/get | sh # 安装glide包管理
script:
- glide up
- CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build
- docker build -t registry.cn-hangzhou.aliyuncs.com/deepzz/eiblog .
- 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
- if [ "$TRAVIS_BRANCH" == "master" ]; then # push到镜像仓库
docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" registry.cn-hangzhou.aliyuncs.com;
docker push registry.cn-hangzhou.aliyuncs.com/deepzz/eiblog;
fi

View File

@@ -1 +1 @@
# EiBlog
# EiBlog [![Build Status](https://travis-ci.org/eiblog/eiblog.svg?branch=master)](https://travis-ci.org/eiblog/eiblog)

View File

@@ -18,8 +18,8 @@ identifier: <!-- more -->
favicon: //st.deepzz.com/static/img/favicon.ico
# 起始ID预留id不时之需, 不用管
startid: 11
# 静态文件地址, 后台js,css在用, cdn: //domain.com
static: //deepzz.com
# cdn: //domain.com
static: //st.deepzz.com
# elasticsearch url
searchurl: http://elasticsearch:9200
# 评论相关

View File

@@ -1,8 +1,3 @@
{{define "ana_js"}}
! function(e, n, o, t) {
var a = e.screen,
r = encodeURIComponent,
i = ["tid=UA-77251712-1", "dl=" + r(n.URL), "dt=" + r(n.title), "dr=" + r(n.referrer), "dp=" + r(t.pathname), "ul=" + (o.language || o.browserLanguage).toLowerCase(), "sd=" + a.colorDepth + "-bit", "sr=" + a.width + "x" + a.height, "_=" + +new Date],
c = "?" + i.join("&");
e.__beacon_img = new Image, e.__beacon_img.src = "/beacon.html" + c }(window, document, navigator, location);
! function(e, n, o, t) {var a = e.screen,r = encodeURIComponent,i = ["tid=UA-77251712-1", "dl=" + r(n.URL), "dt=" + r(n.title), "dr=" + r(n.referrer), "dp=" + r(t.pathname), "ul=" + (o.language || o.browserLanguage).toLowerCase(), "sd=" + a.colorDepth + "-bit", "sr=" + a.width + "x" + a.height, "_=" + +new Date],c = "?" + i.join("&");e.__beacon_img = new Image, e.__beacon_img.src = "/beacon.html" + c }(window, document, navigator, location);
{{end}}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long