From 38e51247f8ce719b887c852c167f7f3d39e86ef5 2019-03-09 16:51:36 From: Marcin Lulek Date: 2019-03-09 16:51:36 Subject: [PATCH] travis changes --- diff --git a/.travis.yml b/.travis.yml index ac6029a..7b4bd21 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,11 +11,11 @@ matrix: - python: 3.5 env: TOXENV=py35 - python: 3.6 - env: TOXENV=py36 DB_STRING="postgres://postgres@127.0.0.1:5432/appenlight_test" DB=postgres + env: TOXENV=py36 addons: postgresql: "9.6" - python: 3.6 - env: TOXENV=py36 BCRYPT="enabled" DB_STRING="postgres://postgres@127.0.0.1:5432/appenlight_test" DB=postgres PGPORT=5432 + env: TOXENV=py36 PGPORT=5432 addons: postgresql: "10" apt: @@ -31,11 +31,12 @@ script: services: - postgresql - - +- elasticsearch +- redis before_script: -- sh -c "if [ '$DB' = 'postgres' ]; then psql -c 'create database appenlight_test;' -U postgres; fi" + - psql -c "create user test with encrypted password 'test';" -U postgres + - psql -c 'create database appenlight_test owner test;' -U postgres after_success: - pip install coveralls diff --git a/tox.ini b/tox.ini index c684286..2833ba5 100644 --- a/tox.ini +++ b/tox.ini @@ -10,4 +10,6 @@ passenv = DB commands= pip install -U pip setuptools wheel pip install -r backend/requirements.txt + pip install -e backend + appenlight-reindex-elasticsearch -c testing.ini -t all pytest backend/src/appenlight/tests