mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-12-22 13:14:28 +00:00
Prepare for federation testing in the CI
This commit is contained in:
parent
fc1219860b
commit
77a3197ad6
7 changed files with 14 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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"]
|
||||
|
|
2
tests/fixtures/instance1/config/.gitignore
vendored
Normal file
2
tests/fixtures/instance1/config/.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
*
|
||||
!.gitignore
|
2
tests/fixtures/instance1/data/.gitignore
vendored
Normal file
2
tests/fixtures/instance1/data/.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
*
|
||||
!.gitignore
|
2
tests/fixtures/instance2/config/.gitignore
vendored
Normal file
2
tests/fixtures/instance2/config/.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
*
|
||||
!.gitignore
|
2
tests/fixtures/instance2/data/.gitignore
vendored
Normal file
2
tests/fixtures/instance2/data/.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
*
|
||||
!.gitignore
|
0
tests/me.yml → tests/fixtures/me.yml
vendored
0
tests/me.yml → tests/fixtures/me.yml
vendored
Loading…
Reference in a new issue