Skip to content

Commit

Permalink
chore (drone) trying to use NATS as a service in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
pentateu committed Mar 27, 2019
1 parent c49668d commit ca4fb78
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
14 changes: 9 additions & 5 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,16 @@ platform:
os: linux
arch: amd64

services:
- name: nats-streaming
image: nats-streaming
ports:
- 4222

steps:
- name: branch-push
image: golang
commands:
- 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
Expand All @@ -19,9 +23,9 @@ steps:
- go get -v github.com/onsi/ginkgo/ginkgo
- go get -v github.com/onsi/gomega
- go get -v github.com/moleculer-go/cupaloy
- curl -fSsL https://github.com/nats-io/nats-streaming-server/releases/download/v0.11.2/nats-streaming-server-v0.11.2-linux-amd64.zip -o nats.zip
- unzip nats.zip && ls
- nohup nats-*/nats-streaming-server -mc 0 -l /dev/null &
# - curl -fSsL https://github.com/nats-io/nats-streaming-server/releases/download/v0.11.2/nats-streaming-server-v0.11.2-linux-amd64.zip -o nats.zip
# - unzip nats.zip && ls
# - nohup nats-*/nats-streaming-server -mc 0 -l /dev/null &
- 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
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@

.idea
.DS_Store
broker/broker.coverprofile

2 changes: 1 addition & 1 deletion transit/nats/stan_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ var _ = Describe("NATS Streaming Transit", func() {
contextA := context.BrokerContext(brokerDelegates)
logger := contextA.Logger()
var serializer serializer.Serializer = serializer.CreateJSONSerializer(logger)
url := "stan://localhost:4222"
url := "stan://nats-streaming:4222"
options := nats.StanOptions{
"MOL",
url,
Expand Down

0 comments on commit ca4fb78

Please sign in to comment.