Skip to content

Commit

Permalink
test: boot nsq cluster via docker-compose, update env file
Browse files Browse the repository at this point in the history
.env files capable of loading configuration that matches the nsq cluster
booted by docker-compose.  Boot docker-compose nsq cluser in CI for live
integration testing.
  • Loading branch information
lanej committed Jan 3, 2018
1 parent aa29aa5 commit d205880
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
NSQD_TCP_ADDRESS=127.0.0.1:4150
NSQD_HTTP_ADDRESS=127.0.0.1:4151
NSQLOOKUPD_TCP_ADDRESS=127.0.0.1:4160
NSQLOOKUPD_HTTP_ADDRESS=127.0.0.1:4161
FAKE_QUEUE=true
11 changes: 10 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
language: ruby
cache: bundler
sudo: false
rvm:
- 2.2.4
- 2.3.5
- 2.4.2
- 2.5.0
script:
- bundle exec rubocop -D
- bundle exec bundle-audit --update
- bundle exec rake
services:
- docker
before_install:
- docker-compose up -d
before_script:
- gem update --system
notifications:
slack:
rooms:
Expand Down
23 changes: 23 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
version: '3'
services:
nsqlookupd:
image: nsqio/nsq
command: /nsqlookupd
ports:
- "4160:4160"
- "4161:4161"
nsqd:
image: nsqio/nsq
command: /nsqd --lookupd-tcp-address=nsqlookupd:4160 --broadcast-address localhost
depends_on:
- nsqlookupd
ports:
- "4150:4150"
- "4151:4151"
nsqadmin:
image: nsqio/nsq
command: /nsqadmin --lookupd-http-address=nsqlookupd:4161
depends_on:
- nsqlookupd
ports:
- "4171:4171"
5 changes: 0 additions & 5 deletions env_configuration_for_local_gem_tests.yml

This file was deleted.

0 comments on commit d205880

Please sign in to comment.