Permalink
Fetching contributors…
Cannot retrieve contributors at this time
57 lines (48 sloc) 1.57 KB
language: python
sudo: true
addons:
postgresql: "9.6"
python:
- "3.3"
- "3.4"
- "3.5"
- "3.6"
- "3.6-dev"
- "3.7-dev"
- "nightly"
virtualenv:
system_site_packages: false
services:
- postgresql
before_install:
- sudo apt-get update
- sudo apt-get install graphviz
install:
- pip install -U pip
# only eggs: do an erreur with wheel
- if [[ $TRAVIS_PYTHON_VERSION == '3.3' ]]; then pip install testfixtures; fi
- if [[ $TRAVIS_PYTHON_VERSION == '3.7-dev' ]]; then pip install python_editor texttable PyYAML; fi
- if [[ $TRAVIS_PYTHON_VERSION == 'nightly' ]]; then pip install python_editor texttable PyYAML; fi
# only wheel
- pip install wheel
- pip install psycopg2 sqlalchemy # for unittesting anyblok with postgres
- pip install flake8 coverage nose
- pip install colour passlib furl phonenumbers pycountry # special columns
- if [[ $TRAVIS_PYTHON_VERSION != '3.3' ]]; then pip install cryptography; fi
- pip install coveralls
- python setup.py develop
env:
global:
- ANYBLOK_DATABASE_NAME=travis_ci_test
- ANYBLOK_DATABASE_DRIVER=postgresql
- ANYBLOK_DATABASE_USER=postgres
script:
- flake8 anyblok
- psql -c 'create database travis_ci_test;' -U postgres
- nosetests anyblok/tests -v -s --with-coverage --cover-package=anyblok
- psql -c 'drop database travis_ci_test;' -U postgres
- anyblok_createdb --install-all-bloks
- nosetests anyblok/bloks --with-anyblok-bloks -v -s --with-coverage --cover-package=anyblok
- anyblok_nose -- -v -s --with-coverage --cover-package=anyblok # test runner
after_success:
coveralls