-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.drone.yml
47 lines (44 loc) · 1.41 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
kind: pipeline
name: default
type: kubernetes
# steps:
# - name: greeting
# image: alpine
# commands:
# - echo helloUUUU
# - echo world
# platform:
# os: linux
# arch: amd64
steps:
- name: tests
image: golang
environment:
CODECOV_TOKEN:
from_secret: CODECOV_TOKEN
COVERALLS_TOKEN:
from_secret: COVERALLS_TOKEN
commands:
- echo "test local CI again"
- apt-get update
- apt-get install unzip
- go get -v golang.org/x/lint/golint
- go get -v golang.org/x/tools/cmd/cover
- go get -v github.com/mattn/goveralls
- go get -v github.com/modocache/gover
- go get -v github.com/nats-io/gnatsd
- go get -v github.com/onsi/ginkgo/ginkgo
- go get -v github.com/onsi/gomega
- go get -v github.com/moleculer-go/cupaloy
- go get -v github.com/nats-io/go-nats-streaming
- go get -v github.com/tidwall/gjson
- go get -v github.com/tidwall/sjson
- mkdir /usr/local/go/src/github.com/
- mkdir /usr/local/go/src/github.com/moleculer-go
- ln -s /drone/src/ /usr/local/go/src/github.com/moleculer-go/moleculer-web
- cd /usr/local/go/src/github.com/moleculer-go/moleculer-web
- go get -d ./...
- ginkgo -r --randomizeAllSpecs --failFast --cover --trace
- gover ./ coverage.txt
- curl -s https://codecov.io/bash | bash
- goveralls -coverprofile=coverage.txt -service=drone.io