diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000000000000000000000000000000000000..2d6208a54e7c3c55d6b00cc01b3f32a9b3d50604 --- /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