Prepare for federation testing in the CI

This commit is contained in:
Thomas Sileo 2018-05-21 12:18:15 +02:00
parent fc1219860b
commit 77a3197ad6
7 changed files with 14 additions and 3 deletions

View file

@ -14,8 +14,11 @@ install:
script:
- mypy --ignore-missing-imports .
- flake8 activitypub.py
- cp -r tests/me.yml config/me.yml
- cp -r tests/fixtures/me.yml config/me.yml
- docker-compose up -d
- docker-compose ps
- sleep 2
- WEB_PORT=5006 DATA_DIR=./tests/fixtures/instance1/data CONFIG_DIR=./tests/fixtures/instance1/config docker-compose -p instance1 up
- docker-compose -p instance1 ps
- WEB_PORT=5007 DATA_DIR=./tests/fixtures/instance2/data CONFIG_DIR=./tests/fixtures/instance2/config docker-compose -p instance2 up
- docker-compose -p instance2 ps
- pytest -v --ignore data

View file

@ -3,4 +3,4 @@ ADD . /app
WORKDIR /app
RUN pip install -r requirements.txt
ENV FLASK_APP=app.py
CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:5005", "app:app"]
CMD ["gunicorn", "-w", "2", "-b", "0.0.0.0:5005", "app:app"]

View file

@ -0,0 +1,2 @@
*
!.gitignore

View file

@ -0,0 +1,2 @@
*
!.gitignore

View file

@ -0,0 +1,2 @@
*
!.gitignore

View file

@ -0,0 +1,2 @@
*
!.gitignore