github.com/moleculer-go/moleculer@v0.3.3/.drone.yml (about)

     1  kind: pipeline
     2  name: default
     3  type: docker
     4  
     5  services:
     6    - name: nats-streaming
     7      image: nats-streaming
     8      command: [-mc, 0]
     9      ports:
    10        - 4222
    11    - name: rabbitmq
    12      image: rabbitmq
    13      ports:
    14        - 5672
    15    - name: kafka
    16      image: quay.io/ukhomeofficedigital/kafkazoo
    17      ports:
    18        - 9092
    19  
    20  steps:
    21    - name: tests
    22      image: golang:latest
    23      environment:
    24        CODECOV_TOKEN:
    25          from_secret: CODECOV_TOKEN
    26        COVERALLS_TOKEN:
    27          from_secret: COVERALLS_TOKEN
    28      commands:
    29        - export STAN_HOST="nats-streaming"
    30        - export NATS_HOST="nats-streaming"
    31        - export AMQP_HOST="guest:guest@rabbitmq"
    32        - export KAFKA_HOST="kafka"
    33        - apt-get update
    34        - apt-get install -y kafkacat
    35        - while ! kafkacat -b kafka:9092 -L ; do sleep 1; done
    36        - go get github.com/onsi/ginkgo/ginkgo@v1.16.2
    37        - go get github.com/onsi/ginkgo/ginkgo/outline@v1.16.2
    38        - go build
    39        - go run github.com/onsi/ginkgo/ginkgo -r --keepGoing --cover --trace -skipPackage=amqp,kafka
    40        # - curl -sL https://deb.nodesource.com/setup_12.x | bash -
    41        # - apt-get update
    42        # - apt-get install -y nodejs
    43        # - go test github.com/moleculer-go/compatibility/moleculerjs
    44        - go get github.com/modocache/gover
    45        - go run github.com/modocache/gover ./ coverage.txt
    46        - curl -s https://codecov.io/bash | bash || echo "Error uploading codecov"
    47        - go run github.com/mattn/goveralls -coverprofile=coverage.txt -service=drone.io || echo "Error uploading coveralls"