Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver006 committed May 8, 2019
1 parent 48b934d commit 636d56a
Show file tree
Hide file tree
Showing 6 changed files with 596 additions and 1,130 deletions.
17 changes: 9 additions & 8 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ services:
image: redis:5
ports:
- 6379
- name: moar-redis
- name: pwd-redis
image: redis:5
commands:
- /usr/local/bin/redis-server --port 6380
commands:
- "/usr/local/bin/redis-server --port 6380 --requirepass redis-password"
ports:
- 6380
- name: redis-cluster
Expand All @@ -38,16 +38,17 @@ steps:
environment:
GO111MODULE: on
LOG_LEVEL: "info"
TEST_TILE38_URI: "tile38:9851"
TEST_SECOND_REDIS_URI: "redis://moar-redis:6380"
TEST_REDIS_CLUSTER_MASTER_URI: "redis-cluster:7000"
TEST_REDIS_CLUSTER_SLAVE_URI: "redis-cluster:7005"
TEST_TILE38_URI: "redis://tile38:9851"
TEST_REDIS_URI: "redis://redis:6379"
TEST_PWD_REDIS_URI: "redis://h:redis-password@pwd-redis:6380"
TEST_REDIS_CLUSTER_MASTER_URI: "redis://redis-cluster:7000"
TEST_REDIS_CLUSTER_SLAVE_URI: "redis://redis-cluster:7005"
COVERALLS_TOKEN:
from_secret: coveralls-token
commands:
- 'go build -mod=vendor'
- "sleep 10" # let the redis test instances all come up first
- 'go test -mod=vendor -v -covermode=atomic -cover -race -coverprofile=coverage.txt ./exporter/... --redis.addr=redis'
- 'go test -mod=vendor -v -covermode=atomic -cover -race -coverprofile=coverage.txt ./exporter/...'
- 'echo "checking gofmt"'
- 'echo " ! gofmt -d main.go 2>&1 | read " | bash'
- 'echo " ! gofmt -d exporter/*.go 2>&1 | read " | bash'
Expand Down
111 changes: 0 additions & 111 deletions exporter/discovery.go

This file was deleted.

103 changes: 0 additions & 103 deletions exporter/discovery_test.go

This file was deleted.

Loading

0 comments on commit 636d56a

Please sign in to comment.