brotherton-erpnext/.travis.yml

32 lines
981 B
YAML
Raw Normal View History

2014-02-06 14:59:05 +05:30
language: python
2013-12-24 12:17:59 +05:30
python:
- "2.7"
services:
- mysql
install:
2014-03-25 18:39:35 +05:30
- sudo service mysql stop
- sudo apt-get install python-software-properties
- sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db
- sudo add-apt-repository 'deb http://ftp.osuosl.org/pub/mariadb/repo/5.5/ubuntu precise main'
- sudo apt-get update
- sudo apt-get purge -y mysql-common
- sudo apt-get install mariadb-server mariadb-common libmariadbclient-dev
2014-02-14 16:10:03 +05:30
- CFLAGS=-O0 pip install git+https://github.com/frappe/frappe.git@develop &&
2013-12-24 12:17:59 +05:30
- pip install --editable .
2014-04-09 20:03:27 +05:30
script:
2014-05-04 16:12:59 +05:30
- cd ./test_sites/
- frappe --use test_site
- frappe --reinstall
- frappe --install_app erpnext --verbose
- frappe -b
- frappe --serve_test &
- frappe --verbose --run_tests --app erpnext
2013-12-24 12:17:59 +05:30
before_script:
2014-05-04 16:12:59 +05:30
- mysql -e 'create database test_frappe'
- echo "USE mysql;\nCREATE USER 'test_frappe'@'localhost' IDENTIFIED BY 'test_frappe';\nFLUSH PRIVILEGES;\n" | mysql -u root