brotherton-erpnext/.travis.yml

39 lines
1.2 KiB
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 apt-get purge -y mysql-common
2015-01-01 15:48:04 +05:30
- 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
2015-04-21 19:19:34 +05:30
- sudo pip install --upgrade pip
2015-01-01 15:48:04 +05:30
- sudo service redis-server start
- rm $TRAVIS_BUILD_DIR/.git/shallow
2015-03-23 16:23:28 +05:30
- cd ~/ && bench init frappe-bench --frappe-path https://github.com/frappe/frappe.git --frappe-branch develop
2015-01-01 15:48:04 +05:30
- cp -r $TRAVIS_BUILD_DIR/test_sites/test_site ~/frappe-bench/sites/
2014-10-12 19:35:46 +05:30
2015-01-01 15:48:04 +05:30
script:
- cd ~/frappe-bench
- bench get-app erpnext $TRAVIS_BUILD_DIR
2015-03-31 13:11:32 +05:30
- bench use test_site
2015-03-31 13:16:29 +05:30
- bench reinstall
- bench build-website
- bench --verbose run-tests
2013-12-24 12:17:59 +05:30
before_script:
- mysql -e 'create database test_frappe'
2015-01-01 15:48:04 +05:30
- 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
2015-04-16 10:45:03 +05:30
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/92b3bea86d8c5397beef
on_success: always
on_failure: always
2015-04-21 19:19:34 +05:30
on_start: never