-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
36 lines (33 loc) · 1.09 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
kind: pipeline
name: default
platform:
os: linux
arch: amd64
services:
- name: nats-streaming
image: nats-streaming
command: [-mc, 0]
ports:
- 4222
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"
- go get github.com/onsi/ginkgo/ginkgo@v1.16.2
- go get github.com/onsi/ginkgo/ginkgo/outline@v1.16.2
- go build ./moleculerjs
- curl -sL https://deb.nodesource.com/setup_12.x | bash -
- apt-get update
- apt-get install -y nodejs
- go run github.com/onsi/ginkgo/ginkgo -r --randomizeAllSpecs --failFast --cover --trace
- go get github.com/modocache/gover
- 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"