Skip to content

Commit

Permalink
Add CircleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
shal authored and Louis committed Aug 30, 2018
1 parent 4909e39 commit e969a65
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 12 deletions.
36 changes: 36 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Ruby CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-ruby/ for more details
#
version: 2
jobs:
build:
machine: true
working_directory: ~/workbench
steps:
- checkout
- run:
name: Install Docker Compose
command: |
curl -L https://github.com/docker/compose/releases/download/1.22.0/docker-compose-`uname -s`-`uname -m` > ~/docker-compose
chmod +x ~/docker-compose
sudo mv ~/docker-compose /usr/local/bin/docker-compose
- run:
name: Add hosts
command: |
echo 0.0.0.0 api.wb.local | sudo tee -a /etc/hosts && \
echo 0.0.0.0 auth.wb.local | sudo tee -a /etc/hosts && \
echo 0.0.0.0 api.slanger.wb.local | sudo tee -a /etc/hosts && \
echo 0.0.0.0 ws.slanger.wb.local | sudo tee -a /etc/hosts
- run:
name: Download apps
command: "make update"
- run:
name: Build docker images
command: "make build"
- run:
name: Run workbench
command: "make start"
- run:
name: Run integration tests
command: "make test"
35 changes: 23 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,18 @@ COMPOSE = docker-compose
default: run

build:
$(COMPOSE) build peatio barong toolbox
$(COMPOSE) build peatio \
barong \
trading_ui \
vault \
db \
phpmyadmin \
redis \
rabbitmq \
smtp_relay \
slanger \
coinhub \
integration

geth:
@$(COMPOSE) up -d geth
Expand All @@ -20,17 +31,17 @@ cryptonodes: geth

daemons:
$(COMPOSE) up --build -d withdraw_audit \
blockchain \
deposit_collection \
deposit_collection_fees \
deposit_coin_address \
slave_book market_ticker \
matching \
order_processor \
pusher_market \
pusher_member \
trade_executor \
withdraw_coin
blockchain \
deposit_collection \
deposit_collection_fees \
deposit_coin_address \
slave_book market_ticker \
matching \
order_processor \
pusher_market \
pusher_member \
trade_executor \
withdraw_coin

dependencies:
$(COMPOSE) up -d vault db phpmyadmin redis rabbitmq smtp_relay slanger coinhub
Expand Down

0 comments on commit e969a65

Please sign in to comment.