Skip to content
Permalink
Browse files

Updated travis conf

  • Loading branch information...
jssuzanne
jssuzanne committed Mar 15, 2019
1 parent 7c961b3 commit 2c11752c10dd57a71db4036d666482a23aaef8f2
Showing with 14 additions and 0 deletions.
  1. +1 −0 .travis.yml
  2. +13 −0 update_env.py
@@ -50,6 +50,7 @@ env:

script:
- flake8 anyblok
- python3 update_env.py
- 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
@@ -0,0 +1,13 @@
#!/usr/bin/env python3

import os
import platform

py_impl = platform.python_implementation()

if (
os.environ.get('ANYBLOK_DATABASE_DRIVER', 'postgresql') == 'postgresql' and
py_impl == 'PyPy'
):
driver = 'postgresql+psycopg2cffi'
os.environ.update(ANYBLOK_DATABASE_DRIVER=driver)

0 comments on commit 2c11752

Please sign in to comment.
You can’t perform that action at this time.