You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

39 line
1.3 KiB

  1. language: python
  2. dist: trusty
  3. python:
  4. - "2.7"
  5. services:
  6. - mysql
  7. before_install:
  8. - "export DISPLAY=:99.0"
  9. - "sh -e /etc/init.d/xvfb start"
  10. install:
  11. - sudo apt-get purge -y mysql-common mysql-server mysql-client
  12. # - wget https://raw.githubusercontent.com/frappe/bench/master/install_scripts/setup_frappe.sh
  13. # - sudo bash setup_frappe.sh --skip-setup-bench --mysql-root-password travis --bench-branch develop
  14. - wget https://raw.githubusercontent.com/frappe/bench/master/playbooks/install.py
  15. - sudo python install.py --develop --user travis --without-bench-setup
  16. - sudo pip install -e ~/bench
  17. - rm $TRAVIS_BUILD_DIR/.git/shallow
  18. - cd ~/ && bench init frappe-bench --frappe-path $TRAVIS_BUILD_DIR
  19. - cp -r $TRAVIS_BUILD_DIR/test_sites/test_site ~/frappe-bench/sites/
  20. script:
  21. - cd ~/frappe-bench
  22. - bench use test_site
  23. - bench reinstall --yes
  24. - bench build
  25. - bench start &
  26. - sleep 10
  27. - bench --verbose run-tests --driver Firefox
  28. before_script:
  29. - mysql -u root -ptravis -e 'create database test_frappe'
  30. - echo "USE mysql;\nCREATE USER 'test_frappe'@'localhost' IDENTIFIED BY 'test_frappe';\nFLUSH PRIVILEGES;\n" | mysql -u root -ptravis
  31. - echo "USE mysql;\nGRANT ALL PRIVILEGES ON \`test_frappe\`.* TO 'test_frappe'@'localhost';\n" | mysql -u root -ptravis