2018-05-18 18:41:41 +00:00
|
|
|
language: python
|
2018-05-20 20:05:50 +00:00
|
|
|
sudo: required
|
2018-05-18 18:41:41 +00:00
|
|
|
python:
|
|
|
|
- "3.6"
|
2018-05-20 20:05:50 +00:00
|
|
|
services:
|
|
|
|
- docker
|
2018-05-18 18:41:41 +00:00
|
|
|
install:
|
2018-05-20 20:46:13 +00:00
|
|
|
- sudo apt-get install -y curl
|
2018-05-20 20:40:14 +00:00
|
|
|
- sudo pip install -U pip
|
2018-05-20 20:05:50 +00:00
|
|
|
- sudo curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
|
|
|
|
- sudo chmod +x /usr/local/bin/docker-compose
|
|
|
|
- docker-compose --version
|
2018-05-20 20:34:56 +00:00
|
|
|
- pip install -r dev-requirements.txt
|
2018-05-18 18:41:41 +00:00
|
|
|
script:
|
2018-05-20 20:11:32 +00:00
|
|
|
- mypy --ignore-missing-imports .
|
2018-05-21 09:21:11 +00:00
|
|
|
- flake8 activitypub.py
|
2018-05-21 10:18:15 +00:00
|
|
|
- cp -r tests/fixtures/me.yml config/me.yml
|
2018-05-20 20:11:32 +00:00
|
|
|
- docker-compose up -d
|
|
|
|
- docker-compose ps
|
2018-05-21 11:03:44 +00:00
|
|
|
- WEB_PORT=5006 CONFIG_DIR=./tests/fixtures/instance1/config docker-compose -p instance1 -f docker-compose-tests.yml up -d
|
|
|
|
- docker-compose -p instance1 -f docker-compose-tests.yml ps
|
2018-05-30 21:13:10 +00:00
|
|
|
- docker inspect instance1_web_1
|
2018-05-21 11:03:44 +00:00
|
|
|
- WEB_PORT=5007 CONFIG_DIR=./tests/fixtures/instance2/config docker-compose -p instance2 -f docker-compose-tests.yml up -d
|
|
|
|
- docker-compose -p instance2 -f docker-compose-tests.yml ps
|
2018-05-26 07:50:59 +00:00
|
|
|
# Integration tests first
|
2018-05-27 09:50:09 +00:00
|
|
|
- python -m pytest -v --ignore data -k integration
|
2018-05-26 07:50:59 +00:00
|
|
|
# Federation tests (with two local instances)
|
2018-05-30 21:09:45 +00:00
|
|
|
- pwd
|
|
|
|
- ls -lR .
|
2018-05-27 09:50:09 +00:00
|
|
|
- python -m pytest -v -s --ignore data -k federation
|
2018-05-29 20:16:09 +00:00
|
|
|
- docker logs instance1_web_1
|