Merge pull request #1 from pdvyas/testing
add travis ci
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..ee64b6d
--- /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 0000000..3796729
--- /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 0000000..d8b9376
--- /dev/null
+++ b/test_sites/test_site/site_config.json
@@ -0,0 +1,4 @@
+{
+ "db_name": "travis",
+ "db_password": "travis"
+}