forked from elastos/Elastos.ELA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
56 lines (51 loc) · 1.29 KB
/
.drone.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
workspace:
path: /github.com/elastos/Elastos.ELA
kind: pipeline
name: elastos
clone:
depth: 10
platform:
os: linux
arch: amd64
steps:
- name: unit
image: golang:1.12
environment:
GOPATH: /drone
commands:
- mkdir -p $GOBIN
- curl https://glide.sh/get | sh
- glide update && glide install
- curl -o /bin/addlicense http://172.16.0.120/addlicense
- curl -o /bin/revive http://172.16.120/revive
- curl -o /bin/checkcoverage http://172.16.120/checkcoverage
- chmod +x /bin/addlicense /bin/revive /bin/checkcoverage
- addlicense -check
- revive -config .revive.toml -formatter friendly -exclude vendor/... $(go list ./...)
- go test $(go list ./... | grep -v /vendor/) -v -short -coverprofile .coverage
- go tool cover -func .coverage
- checkcoverage
- make all
- make dns
- mkdir bin && cp ela ela-cli bin
- bin/ela -v
- ./util.sh test
when:
event:
- push
- pull_request
#volumes:
#- name: gopath
# path: /go
- name: check
image: python:3.6-jessie
environment:
GOPATH: /drone
commands:
- curl -O http://172.16.0.120/testingwork-testing_work.tar.gz
- tar xf testingwork-testing_work.tar.gz
- python -V
- ./ela -v
- cd testingwork-testing_work
- python -m pip install -r requirements.txt
- python dpos_normal_test.py