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 |
Pratik Vyas | ed20b68 | 2014-02-14 16:10:03 +0530 | [diff] [blame] | 17 | - CFLAGS=-O0 pip install git+https://github.com/frappe/frappe.git@develop && |
Pratik Vyas | f437e86 | 2013-12-24 12:17:59 +0530 | [diff] [blame] | 18 | - pip install --editable . |
| 19 | |
Anand Doshi | 2077162 | 2014-04-09 20:03:27 +0530 | [diff] [blame] | 20 | script: |
Pratik Vyas | f437e86 | 2013-12-24 12:17:59 +0530 | [diff] [blame] | 21 | cd ./test_sites/ && |
Anand Doshi | ec62119 | 2014-03-07 14:01:56 +0530 | [diff] [blame] | 22 | frappe --reinstall test_site && |
Anand Doshi | 61649c1 | 2014-04-10 12:40:29 +0530 | [diff] [blame] | 23 | frappe --install_app erpnext test_site --verbose && |
Rushabh Mehta | 603e6e2 | 2014-04-18 16:17:29 +0530 | [diff] [blame] | 24 | 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&language=english&company_tagline=Testing&email=test@erpnext.com&password=test' test_site && |
Anand Doshi | 61649c1 | 2014-04-10 12:40:29 +0530 | [diff] [blame] | 25 | frappe --verbose --run_tests test_site --app erpnext |
Pratik Vyas | f437e86 | 2013-12-24 12:17:59 +0530 | [diff] [blame] | 26 | |
| 27 | before_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 | |