From b6315f9b49fb8d95b4e07fe527225856f8655e80 Mon Sep 17 00:00:00 2001 From: Ranju R Date: Fri, 17 Aug 2018 19:15:33 +0530 Subject: [PATCH] add travis --- .travis.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..b079209bf --- /dev/null +++ b/.travis.yml @@ -0,0 +1,24 @@ +language: python +python: + - "3.6" + +services: + - postgresql + +env: + matrix: + - DJANGO=2.1 DB=postgres + global: + - SECRET_KEY=not_so_secret + B_DATABASE_URL="postgres://postgres@localhost/test_db" + ALLOWED_HOSTS= "localhost" + SENTRY_DSN="" + +install: + - pip install -r requirements.txt + +before_script: + - psql -c 'create database test_db;' -U postgres + +script: + - python manage.py test \ No newline at end of file