Files
ormar/.travis.yml
2020-11-01 11:41:18 +01:00

33 lines
558 B
YAML

language: python
dist: xenial
cache: pip
python:
- "3.6"
- "3.7"
- "3.8"
services:
- postgresql
- mysql
install:
- pip install -U -r requirements.txt
before_script:
- psql -c 'create database test_database;' -U postgres
- echo 'create database test_database;' | mysql
script:
- DATABASE_URL=postgresql://localhost/test_database scripts/test.sh
- DATABASE_URL=mysql://localhost/test_database scripts/test.sh
- DATABASE_URL=sqlite:///test.db scripts/test.sh
- mypy --config-file mypy.ini ormar tests
after_script:
- codecov