From f437e867fdc14455f5841459a3f49ba5ef3b06da Mon Sep 17 00:00:00 2001 From: Pratik Vyas Date: Tue, 24 Dec 2013 12:17:59 +0530 Subject: [PATCH] add travis ci --- .travis.yml | 30 +++++++++++++++++++++++++++ test_sites/apps.txt | 1 + test_sites/test_site/site_config.json | 4 ++++ 3 files changed, 35 insertions(+) create mode 100644 .travis.yml create mode 100644 test_sites/apps.txt create mode 100644 test_sites/test_site/site_config.json diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000000..ee64b6d176 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,30 @@ +anguage: python + +python: + - "2.7" + +services: + - mysql + +install: + - pip install https://github.com/webnotes/wnframework/archive/4.0.0-wip.tar.gz && + - pip install --editable . + +script: + cd ./test_sites/ && + webnotes --reinstall -v test_site && + webnotes --install_app erpnext -v test_site && + webnotes --run_tests -v test_site --app erpnext + +branches: + except: + - develop + - master + - 3.x.x + - slow + - webshop_refactor + +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/apps.txt b/test_sites/apps.txt new file mode 100644 index 0000000000..37967291f6 --- /dev/null +++ b/test_sites/apps.txt @@ -0,0 +1 @@ +erpnext 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" +}