Pratik Vyas | cc9bc95 | 2014-02-06 14:59:05 +0530 | [diff] [blame] | 1 | language: python |
Pratik Vyas | f437e86 | 2013-12-24 12:17:59 +0530 | [diff] [blame] | 2 | |
| 3 | python: |
| 4 | - "2.7" |
| 5 | |
| 6 | services: |
| 7 | - mysql |
| 8 | |
| 9 | install: |
Anand Doshi | 3be9e26 | 2014-03-25 18:39:35 +0530 | [diff] [blame] | 10 | - sudo service mysql stop |
| 11 | - sudo apt-get install python-software-properties |
| 12 | - sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db |
| 13 | - sudo add-apt-repository 'deb http://ftp.osuosl.org/pub/mariadb/repo/5.5/ubuntu precise main' |
| 14 | - sudo apt-get update |
| 15 | - sudo apt-get purge -y mysql-common |
| 16 | - sudo apt-get install mariadb-server mariadb-common libmariadbclient-dev |
Anand Doshi | 161f63d | 2014-07-25 13:36:47 +0530 | [diff] [blame] | 17 | - wget http://downloads.sourceforge.net/project/wkhtmltopdf/0.12.1/wkhtmltox-0.12.1_linux-precise-amd64.deb |
| 18 | - sudo dpkg -i wkhtmltox-0.12.1_linux-precise-amd64.deb |
Anand Doshi | 20fbfa2 | 2014-07-30 11:50:05 +0530 | [diff] [blame] | 19 | - CFLAGS=-O0 pip install git+https://github.com/frappe/frappe.git@develop |
| 20 | - CFLAGS=-O0 pip install --editable . |
Pratik Vyas | f437e86 | 2013-12-24 12:17:59 +0530 | [diff] [blame] | 21 | |
Anand Doshi | c5dbf0f | 2014-06-18 13:35:37 +0530 | [diff] [blame] | 22 | before_script: |
| 23 | - mysql -e 'create database test_frappe' |
| 24 | - echo "USE mysql;\nCREATE USER 'test_frappe'@'localhost' IDENTIFIED BY 'test_frappe';\nFLUSH PRIVILEGES;\n" | mysql -u root |
Pratik Vyas | 5a5b405 | 2014-07-30 16:49:05 +0530 | [diff] [blame] | 25 | - echo "USE mysql;\nGRANT ALL PRIVILEGES ON \`test_frappe\`.* TO 'test_frappe'@'localhost';\n" | mysql -u root |
Anand Doshi | c5dbf0f | 2014-06-18 13:35:37 +0530 | [diff] [blame] | 26 | |
Anand Doshi | 2077162 | 2014-04-09 20:03:27 +0530 | [diff] [blame] | 27 | script: |
Anand Doshi | 2af5585 | 2014-05-04 16:12:59 +0530 | [diff] [blame] | 28 | - cd ./test_sites/ |
| 29 | - frappe --use test_site |
| 30 | - frappe --reinstall |
| 31 | - frappe --install_app erpnext --verbose |
| 32 | - frappe -b |
Rushabh Mehta | ddd2648 | 2014-06-30 18:08:07 +0530 | [diff] [blame] | 33 | - frappe --build_website |
Anand Doshi | 2af5585 | 2014-05-04 16:12:59 +0530 | [diff] [blame] | 34 | - frappe --serve_test & |
| 35 | - frappe --verbose --run_tests --app erpnext |