From a2d5d4692479e60e1bedc1a92763267955928b1e Mon Sep 17 00:00:00 2001 From: vatsala Date: Sun, 5 Jun 2016 23:55:55 +0530 Subject: [PATCH 1/3] Updated requirements.txt --- requirements.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/requirements.txt b/requirements.txt index 0bd9fe6..23bb722 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,3 +6,6 @@ psycopg2==2.5.4 PyYAML==3.11 requests==2.7.0 selenium==2.53.1 +phonenumbers==7.2.6 +django-cities-light==3.2.0 +Unidecode==0.4.19 From 3ad2b1d12cb0dc99c3b674797f63c712b6bd19ef Mon Sep 17 00:00:00 2001 From: Vatsala Swaroop Date: Mon, 6 Jun 2016 01:00:03 +0530 Subject: [PATCH 2/3] Created travis file for continuous integration --- .travis.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..1c09059 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,18 @@ +language: python +python: + - "2.7" +services: postgresql +install: + - pip install -r requirements.txt +before_script: + - psql -c "CREATE DATABASE vms;" -U postgres + - "export DISPLAY=:99.0" + - "sh -e /etc/init.d/xvfb start" + - sleep 3 +script: + - cd vms + - python manage.py syncdb --noinput + - python manage.py migrate --noinput --traceback --settings=vms.settings + - coverage run --source='.' manage.py test +after_success: + coveralls --rcfile=.coveragerc From 2962afbdd16f573dce3eb5daa14dd6b84d44d1d5 Mon Sep 17 00:00:00 2001 From: Vatsala Swaroop Date: Mon, 6 Jun 2016 19:51:00 +0530 Subject: [PATCH 3/3] created user vmsadmin to remove error in travis --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 1c09059..6d1df75 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,6 +5,7 @@ services: postgresql install: - pip install -r requirements.txt before_script: + - psql -c "create role vmsadmin with createrole createdb login password '0xdeadbeef';" -U postgres - psql -c "CREATE DATABASE vms;" -U postgres - "export DISPLAY=:99.0" - "sh -e /etc/init.d/xvfb start"