From dfc6bacee2de04fce495299eaa3fc799af27efee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barnab=C3=A1s=20Cz=C3=A9m=C3=A1n?= <barni2000@users.noreply.github.com> Date: Tue, 23 Jan 2018 15:09:16 +0100 Subject: [PATCH] Create .travis.yml --- .travis.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..2d6208a --- /dev/null +++ b/.travis.yml @@ -0,0 +1,27 @@ +language: python +python: + - "3.4" + - "3.5" + - "3.5-dev" # 3.5 development branch + - "3.6" + - "3.6-dev" # 3.6 development branch + - "3.7-dev" # 3.7 development branch + - "nightly" +services: + - postgresql +# command to install dependencies +install: + - pip install -r requirements/development.txt + +before_script: + - psql -c 'create database travis_ci_test;' -U postgres +env: + - DATABASE_URL="postgresql://postgres:postgres@postgres:5432/travis_ci_test" + - SECRET_KEY="secret" + - AUTHSCH_KEY="secret" + - AUTHSCH_SECRET="secret" +# command to run tests +script: + - flake8 --max-line-length=125 --exclude=src/kszkepzes,migrations + - python src/manage.py migrate + - python src/manage.py test -- GitLab