Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding test config #8

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
47 changes: 47 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
version: 2
jobs:
build:
machine: true

steps:
- checkout

- run:
name: compose_to_be_removed
command: |
cd stand
pwd
ls
docker-compose up
background: true

- run:
name: install dockerize
command: wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz && sudo tar -C /usr/local/bin -xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz && rm dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please split that line?
Also dockerize should be present in circleci native images

environment:
DOCKERIZE_VERSION: v0.3.0


- run:
name: generator
command: |
dockerize -wait tcp://clickhouse:2003 -timeout 2m
timeout 30 bash stand/generator.sh
background: true

- run:
name: image
command: |
dockerize -wait tcp://localhost:2003 -timeout 2m
dockerize -wait tcp://clickhouse:8123 -timeout 2m
sleep 120
bash stand/image.sh


- run:
name: creating artifacts dir
command: mkdir stand/artifacts

- store_artifacts:
path: stand/artifact