add travis ci

This commit is contained in:
Pratik Vyas 2013-12-24 12:17:59 +05:30
parent b63d550a70
commit f437e867fd
3 changed files with 35 additions and 0 deletions

30
.travis.yml Normal file
View File

@ -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

1
test_sites/apps.txt Normal file
View File

@ -0,0 +1 @@
erpnext

View File

@ -0,0 +1,4 @@
{
"db_name": "travis",
"db_password": "travis"
}