From eb45b117139861a64d5ebef827ae9e9d423c3e4e Mon Sep 17 00:00:00 2001 From: Pratik Vyas Date: Mon, 23 Dec 2013 13:14:18 +0530 Subject: [PATCH] configure travis --- .travis.yml | 25 +++++++++++++++++++++++++ test_sites/test_site/site_config.json | 4 ++++ 2 files changed, 29 insertions(+) create mode 100644 .travis.yml create mode 100644 test_sites/test_site/site_config.json diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000000..5dee4c06c8 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,25 @@ +language: python + +python: + - "2.7" + +services: + - mysql + +install: + - pip install -r requirements.txt + - pip install --editable . + +script: + cd ./test_sites/ && + webnotes --reinstall -v test_site && + webnotes --run_tests -v test_site + +branches: + only: + - testing + +before_script: + - mysql -e 'create database travis' && + - echo "USE mysql;\nUPDATE user SET password=PASSWORD('travis') WHERE user='travis';\nFLUSH PRIVILEGES;\n" | mysql -u root + diff --git a/test_sites/test_site/site_config.json b/test_sites/test_site/site_config.json new file mode 100644 index 0000000000..d8b937638d --- /dev/null +++ b/test_sites/test_site/site_config.json @@ -0,0 +1,4 @@ +{ + "db_name": "travis", + "db_password": "travis" +}