blob: 4c5b1714a3438c34c71e37c8fdcf5bc054381090 [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:
Pratik Vyasf437e862013-12-24 12:17:59 +053021 cd ./test_sites/ &&
Anand Doshiec621192014-03-07 14:01:56 +053022 frappe --reinstall test_site &&
Anand Doshi8c45d4c2014-04-10 11:38:11 +053023 frappe --install_app erpnext test_site &&
Pratik Vyasa08855a2014-02-20 00:06:35 +053024 frappe --request '?cmd=erpnext.setup.page.setup_wizard.setup_wizard.setup_account&currency=USD&first_name=Test&last_name=User&company_name=Wind+Power+LLC&timezone=America/New_York&company_abbr=WP&industry=Manufacturing&country=United states&fy_start_date=2014-01-01&fy_end_date=2014-12-31' test_site &&
Anand Doshiec621192014-03-07 14:01:56 +053025 frappe --run_tests test_site --app erpnext
Pratik Vyasf437e862013-12-24 12:17:59 +053026
27before_script:
28 - mysql -e 'create database travis' &&
29 - echo "USE mysql;\nUPDATE user SET password=PASSWORD('travis') WHERE user='travis';\nFLUSH PRIVILEGES;\n" | mysql -u root
30