mirror of https://github.com/JohnHammond/CTFd.git
21 lines
467 B
YAML
21 lines
467 B
YAML
language: python
|
|
services:
|
|
- mysql
|
|
- postgresql
|
|
env:
|
|
- TESTING_DATABASE_URL='mysql+pymysql://root@localhost/ctfd'
|
|
- TESTING_DATABASE_URL='sqlite://'
|
|
- TESTING_DATABASE_URL='postgres://postgres@localhost/ctfd'
|
|
python:
|
|
- 2.7
|
|
- 3.6
|
|
install:
|
|
- pip install -r development.txt
|
|
before_script:
|
|
- psql -c 'create database ctfd;' -U postgres
|
|
script:
|
|
- pep8 --ignore E501,E712 CTFd/ tests/
|
|
- nosetests -d
|
|
after_success:
|
|
- codecov
|