2018-05-18 13:41:41 -05:00
|
|
|
language: python
|
2018-05-20 15:05:50 -05:00
|
|
|
sudo: required
|
2018-05-18 13:41:41 -05:00
|
|
|
python:
|
|
|
|
- "3.6"
|
2018-05-20 15:05:50 -05:00
|
|
|
services:
|
|
|
|
- docker
|
2018-05-18 13:41:41 -05:00
|
|
|
install:
|
2018-05-20 15:46:13 -05:00
|
|
|
- sudo apt-get install -y curl
|
2018-05-20 15:40:14 -05:00
|
|
|
- sudo pip install -U pip
|
2018-05-20 15:05:50 -05: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 15:34:56 -05:00
|
|
|
- pip install -r dev-requirements.txt
|
2018-05-18 13:41:41 -05:00
|
|
|
script:
|
2018-05-20 15:11:32 -05:00
|
|
|
- mypy --ignore-missing-imports .
|
2018-05-21 04:21:11 -05:00
|
|
|
- flake8 activitypub.py
|
2018-05-21 05:18:15 -05:00
|
|
|
- cp -r tests/fixtures/me.yml config/me.yml
|
2018-05-20 15:11:32 -05:00
|
|
|
- docker-compose up -d
|
|
|
|
- docker-compose ps
|
2018-05-21 05:18:15 -05:00
|
|
|
- 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
|
2018-05-20 15:34:56 -05:00
|
|
|
- pytest -v --ignore data
|