blob: 59acb5c0e47d1ad8543c423fac56c3fcb10dbd94 [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 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
Pratik Vyased20b682014-02-14 16:10:03 +053017 - CFLAGS=-O0 pip install git+https://github.com/frappe/frappe.git@develop &&
Pratik Vyasf437e862013-12-24 12:17:59 +053018 - pip install --editable .
19
Anand Doshi20771622014-04-09 20:03:27 +053020script:
Anand Doshi2af55852014-05-04 16:12:59 +053021 - cd ./test_sites/
22 - frappe --use test_site
23 - frappe --reinstall
24 - frappe --install_app erpnext --verbose
25 - frappe -b
26 - frappe --serve_test &
27 - frappe --verbose --run_tests --app erpnext
Pratik Vyasf437e862013-12-24 12:17:59 +053028
29before_script:
Anand Doshi2af55852014-05-04 16:12:59 +053030 - mysql -e 'create database test_frappe'
31 - echo "USE mysql;\nCREATE USER 'test_frappe'@'localhost' IDENTIFIED BY 'test_frappe';\nFLUSH PRIVILEGES;\n" | mysql -u root