forked from moleculer-go/moleculer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
39 lines (36 loc) · 1.11 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
kind: pipeline
name: default
platform:
os: linux
arch: amd64
services:
- name: nats-streaming
image: nats-streaming
command: [-mc, 0]
ports:
- 4222
- name: rabbitmq
image: rabbitmq
ports:
- 5672
steps:
- name: tests
image: golang:latest
environment:
CODECOV_TOKEN:
from_secret: CODECOV_TOKEN
COVERALLS_TOKEN:
from_secret: COVERALLS_TOKEN
commands:
- export STAN_HOST="nats-streaming"
- export NATS_HOST="nats-streaming"
- export AMQP_HOST="guest:guest@rabbitmq"
- go build
- go run github.com/onsi/ginkgo/ginkgo -r --keepGoing --cover --trace -skipPackage=amqp
# - curl -sL https://deb.nodesource.com/setup_12.x | bash -
# - apt-get update
# - apt-get install -y nodejs
# - go test github.com/moleculer-go/compatibility/moleculerjs
- go run github.com/modocache/gover ./ coverage.txt
- curl -s https://codecov.io/bash | bash || echo "Error uploading codecov"
- go run github.com/mattn/goveralls -coverprofile=coverage.txt -service=drone.io || echo "Error uploading coveralls"