2014-02-06 09:29:05 +00:00
|
|
|
language: python
|
2013-12-24 06:47:59 +00:00
|
|
|
|
|
|
|
python:
|
|
|
|
- "2.7"
|
|
|
|
|
|
|
|
services:
|
|
|
|
- mysql
|
|
|
|
|
|
|
|
install:
|
2014-03-25 13:09:35 +00:00
|
|
|
- sudo apt-get purge -y mysql-common
|
2015-01-01 10:18:04 +00:00
|
|
|
- wget https://raw.githubusercontent.com/frappe/bench/master/install_scripts/setup_frappe.sh
|
|
|
|
- sudo bash setup_frappe.sh --skip-setup-bench --mysql-root-password travis
|
|
|
|
- sudo service redis-server start
|
|
|
|
- rm $TRAVIS_BUILD_DIR/.git/shallow
|
2015-03-23 10:53:28 +00:00
|
|
|
- cd ~/ && bench init frappe-bench --frappe-path https://github.com/frappe/frappe.git --frappe-branch develop
|
2015-01-01 10:18:04 +00:00
|
|
|
- cp -r $TRAVIS_BUILD_DIR/test_sites/test_site ~/frappe-bench/sites/
|
2014-10-12 14:05:46 +00:00
|
|
|
|
2015-01-01 10:18:04 +00:00
|
|
|
script:
|
|
|
|
- cd ~/frappe-bench
|
|
|
|
- bench get-app erpnext $TRAVIS_BUILD_DIR
|
2015-03-31 07:41:32 +00:00
|
|
|
- bench use test_site
|
2015-01-01 10:18:04 +00:00
|
|
|
- bench frappe --reinstall
|
|
|
|
- bench frappe --build_website
|
|
|
|
- bench frappe --serve_test &
|
|
|
|
- bench frappe --verbose --run_tests
|
2013-12-24 06:47:59 +00:00
|
|
|
|
2014-06-18 08:05:37 +00:00
|
|
|
before_script:
|
|
|
|
- mysql -e 'create database test_frappe'
|
2015-01-01 10:18:04 +00:00
|
|
|
- echo "USE mysql;\nCREATE USER 'test_frappe'@'localhost' IDENTIFIED BY 'test_frappe';\nFLUSH PRIVILEGES;\n" | mysql -u root -ptravis
|
|
|
|
- echo "USE mysql;\nGRANT ALL PRIVILEGES ON \`test_frappe\`.* TO 'test_frappe'@'localhost';\n" | mysql -u root -ptravis
|
2014-06-18 08:05:37 +00:00
|
|
|
|