blob: ace0f7c4c3f00f51a9cd6c235c1402160e7b7649 [file] [log] [blame]
Pratik Vyascc9bc952014-02-06 14:59:05 +05301language: python
Pratik Vyasf437e862013-12-24 12:17:59 +05302
3python:
4 - "2.7"
5
6services:
7 - mysql
8
9install:
Anand Doshi3be9e262014-03-25 18:39:35 +053010 - sudo apt-get purge -y mysql-common
Pratik Vyas2a47eeb2015-01-01 15:48:04 +053011 - wget https://raw.githubusercontent.com/frappe/bench/master/install_scripts/setup_frappe.sh
12 - sudo bash setup_frappe.sh --skip-setup-bench --mysql-root-password travis
Pratik Vyas6814a392015-04-21 19:19:34 +053013 - sudo pip install --upgrade pip
Pratik Vyas2a47eeb2015-01-01 15:48:04 +053014 - sudo service redis-server start
15 - rm $TRAVIS_BUILD_DIR/.git/shallow
Pratik Vyasf2eed442015-03-23 16:23:28 +053016 - cd ~/ && bench init frappe-bench --frappe-path https://github.com/frappe/frappe.git --frappe-branch develop
Pratik Vyas2a47eeb2015-01-01 15:48:04 +053017 - cp -r $TRAVIS_BUILD_DIR/test_sites/test_site ~/frappe-bench/sites/
Pratik Vyas86680812014-10-12 19:35:46 +053018
Pratik Vyas2a47eeb2015-01-01 15:48:04 +053019script:
20 - cd ~/frappe-bench
21 - bench get-app erpnext $TRAVIS_BUILD_DIR
Pratik Vyas52d36972015-03-31 13:11:32 +053022 - bench use test_site
Pratik Vyas4ce79772015-03-31 13:16:29 +053023 - bench reinstall
24 - bench build-website
25 - bench --verbose run-tests
Pratik Vyasf437e862013-12-24 12:17:59 +053026
Anand Doshic5dbf0f2014-06-18 13:35:37 +053027before_script:
28 - mysql -e 'create database test_frappe'
Pratik Vyas2a47eeb2015-01-01 15:48:04 +053029 - echo "USE mysql;\nCREATE USER 'test_frappe'@'localhost' IDENTIFIED BY 'test_frappe';\nFLUSH PRIVILEGES;\n" | mysql -u root -ptravis
30 - echo "USE mysql;\nGRANT ALL PRIVILEGES ON \`test_frappe\`.* TO 'test_frappe'@'localhost';\n" | mysql -u root -ptravis
Anand Doshic5dbf0f2014-06-18 13:35:37 +053031
Pratik Vyasa7b7e622015-04-16 10:45:03 +053032notifications:
33 webhooks:
34 urls:
35 - https://webhooks.gitter.im/e/92b3bea86d8c5397beef
36 on_success: always
37 on_failure: always
Pratik Vyas6814a392015-04-21 19:19:34 +053038 on_start: never