blob: 9f3737428b9895df5ea0b1912ef4d057ab71d897 [file] [log] [blame]
Pratik Vyascc9bc952014-02-06 14:59:05 +05301language: python
shreyas60e9f842016-07-29 19:39:49 +05302dist: trusty
Sagar Voraf070c542017-06-22 16:43:28 +05303group: deprecated-2017Q2
Pratik Vyasf437e862013-12-24 12:17:59 +05304
5python:
6 - "2.7"
7
8services:
9 - mysql
10
Anand Doshi1b6c3f12015-05-28 21:46:40 -040011before_install:
12 - "export DISPLAY=:99.0"
13 - "sh -e /etc/init.d/xvfb start"
14
Pratik Vyasf437e862013-12-24 12:17:59 +053015install:
shreyas60e9f842016-07-29 19:39:49 +053016 - sudo apt-get purge -y mysql-common mysql-server mysql-client
Makarand Bauskar0b8f9202017-06-01 18:56:39 +053017 - nvm install v7.10.0
shreyas60e9f842016-07-29 19:39:49 +053018 # - wget https://raw.githubusercontent.com/frappe/bench/master/install_scripts/setup_frappe.sh
19 # - sudo bash setup_frappe.sh --skip-setup-bench --mysql-root-password travis --bench-branch develop
20 - wget https://raw.githubusercontent.com/frappe/bench/master/playbooks/install.py
21 - sudo python install.py --develop --user travis --without-bench-setup
22 - sudo pip install -e ~/bench
23
24 # - sudo pip install --upgrade pip
Pratik Vyas2a47eeb2015-01-01 15:48:04 +053025 - rm $TRAVIS_BUILD_DIR/.git/shallow
Anand Doshi6677fd52016-04-07 18:19:56 +053026 - bash $TRAVIS_BUILD_DIR/travis/bench_init.sh
Pratik Vyas2a47eeb2015-01-01 15:48:04 +053027 - cp -r $TRAVIS_BUILD_DIR/test_sites/test_site ~/frappe-bench/sites/
Pratik Vyas86680812014-10-12 19:35:46 +053028
Pratik Vyas2a47eeb2015-01-01 15:48:04 +053029script:
30 - cd ~/frappe-bench
31 - bench get-app erpnext $TRAVIS_BUILD_DIR
Pratik Vyas52d36972015-03-31 13:11:32 +053032 - bench use test_site
Rushabh Mehtacc887902016-07-24 22:45:09 +053033 - bench reinstall --yes
Anand Doshid726ce52015-08-17 15:13:58 +053034 - bench build
Anand Doshid726ce52015-08-17 15:13:58 +053035 - bench start &
Anand Doshi1b6c3f12015-05-28 21:46:40 -040036 - sleep 10
37 - bench --verbose run-tests --driver Firefox
Pratik Vyasf437e862013-12-24 12:17:59 +053038
Anand Doshic5dbf0f2014-06-18 13:35:37 +053039before_script:
shreyas60e9f842016-07-29 19:39:49 +053040 - mysql -u root -ptravis -e 'create database test_frappe'
Pratik Vyas2a47eeb2015-01-01 15:48:04 +053041 - echo "USE mysql;\nCREATE USER 'test_frappe'@'localhost' IDENTIFIED BY 'test_frappe';\nFLUSH PRIVILEGES;\n" | mysql -u root -ptravis
42 - echo "USE mysql;\nGRANT ALL PRIVILEGES ON \`test_frappe\`.* TO 'test_frappe'@'localhost';\n" | mysql -u root -ptravis
Anand Doshic5dbf0f2014-06-18 13:35:37 +053043
Pratik Vyasa7b7e622015-04-16 10:45:03 +053044notifications:
45 webhooks:
46 urls:
47 - https://webhooks.gitter.im/e/92b3bea86d8c5397beef
Anand Doshi1b6c3f12015-05-28 21:46:40 -040048 on_success: always
49 on_failure: always
Pratik Vyas6814a392015-04-21 19:19:34 +053050 on_start: never