blob: 6eab0e4af6acab0e6d0422c916d14f79932a350b [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 Vyas994d9072014-07-21 17:36:50 +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 Doshic5dbf0f2014-06-18 13:35:37 +053020before_script:
21 - mysql -e 'create database test_frappe'
22 - echo "USE mysql;\nCREATE USER 'test_frappe'@'localhost' IDENTIFIED BY 'test_frappe';\nFLUSH PRIVILEGES;\n" | mysql -u root
23
Anand Doshi20771622014-04-09 20:03:27 +053024script:
Anand Doshi2af55852014-05-04 16:12:59 +053025 - cd ./test_sites/
26 - frappe --use test_site
27 - frappe --reinstall
28 - frappe --install_app erpnext --verbose
29 - frappe -b
Rushabh Mehtaddd26482014-06-30 18:08:07 +053030 - frappe --build_website
Anand Doshi2af55852014-05-04 16:12:59 +053031 - frappe --serve_test &
32 - frappe --verbose --run_tests --app erpnext