2014-02-06 09:29:05 +00:00
|
|
|
language: python
|
2013-12-24 06:47:59 +00:00
|
|
|
|
|
|
|
python:
|
|
|
|
- "2.7"
|
|
|
|
|
|
|
|
services:
|
|
|
|
- mysql
|
|
|
|
|
|
|
|
install:
|
2014-03-25 13:09:35 +00:00
|
|
|
- sudo service mysql stop
|
|
|
|
- sudo apt-get install python-software-properties
|
|
|
|
- sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db
|
|
|
|
- sudo add-apt-repository 'deb http://ftp.osuosl.org/pub/mariadb/repo/5.5/ubuntu precise main'
|
|
|
|
- sudo apt-get update
|
|
|
|
- sudo apt-get purge -y mysql-common
|
|
|
|
- sudo apt-get install mariadb-server mariadb-common libmariadbclient-dev
|
2014-02-14 10:40:03 +00:00
|
|
|
- CFLAGS=-O0 pip install git+https://github.com/frappe/frappe.git@develop &&
|
2013-12-24 06:47:59 +00:00
|
|
|
- pip install --editable .
|
|
|
|
|
|
|
|
script:
|
|
|
|
cd ./test_sites/ &&
|
2014-03-07 08:31:56 +00:00
|
|
|
frappe --reinstall test_site &&
|
|
|
|
frappe --install_app erpnext test_site &&
|
2014-02-19 18:36:35 +00:00
|
|
|
frappe --request '?cmd=erpnext.setup.page.setup_wizard.setup_wizard.setup_account¤cy=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 &&
|
2014-03-07 08:31:56 +00:00
|
|
|
frappe --run_tests test_site --app erpnext
|
2013-12-24 06:47:59 +00:00
|
|
|
|
|
|
|
before_script:
|
|
|
|
- mysql -e 'create database travis' &&
|
|
|
|
- echo "USE mysql;\nUPDATE user SET password=PASSWORD('travis') WHERE user='travis';\nFLUSH PRIVILEGES;\n" | mysql -u root
|
|
|
|
|