forked from cloudwan/gohan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
42 lines (39 loc) · 1.45 KB
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
machine:
pre:
- curl -o go.tar.gz -sL https://storage.googleapis.com/golang/go1.7.4.linux-amd64.tar.gz
- sudo rm -rf /usr/local/go
- sudo tar -C /usr/local -xzf go.tar.gz
- sudo chmod a+w /usr/local/go/src/
services:
- docker
dependencies:
override:
- curl -L https://github.com/coreos/etcd/releases/download/v3.0.15/etcd-v3.0.15-linux-amd64.tar.gz -o etcd-v3.0.15-linux-amd64.tar.gz
- tar xzvf etcd-v3.0.15-linux-amd64.tar.gz
- sudo install etcd-v3.0.15-linux-amd64/etcd /usr/bin
- go get github.com/mattn/goveralls
- make deps
test:
pre:
- go version
- mkdir -p /home/ubuntu/.go_workspace/src/github.com/cloudwan/
- ln -s /home/ubuntu/gohan /home/ubuntu/.go_workspace/src/github.com/cloudwan/gohan
override:
- make gen:
pwd: ../.go_workspace/src/github.com/cloudwan/gohan
- make lint:
pwd: ../.go_workspace/src/github.com/cloudwan/gohan
- make test:
pwd: ../.go_workspace/src/github.com/cloudwan/gohan
deployment:
release:
branch: master
commands:
- go get github.com/karalabe/xgo
- ./tools/crosscompile.sh:
timeout: 1800
- sudo apt-get install -y zip
- curl -L https://github.com/tcnksm/ghr/releases/download/v0.5.0/ghr_v0.5.0_linux_amd64.zip -o ghr_v0.5.0_linux_amd64.zip
- unzip ghr_v0.5.0_linux_amd64.zip
- chmod 0755 ghr
- ./ghr -t $GITHUB_TOKEN -u $CIRCLE_PROJECT_USERNAME -r $CIRCLE_PROJECT_REPONAME -replace pre-release dist/