Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 
 
 

44 строки
1.3 KiB

  1. language: python
  2. dist: trusty
  3. python:
  4. - "2.7"
  5. services:
  6. - mysql
  7. before_install:
  8. - export CHROME_BIN=chromium-browser
  9. - export DISPLAY=:99.0
  10. - sh -e /etc/init.d/xvfb start
  11. install:
  12. - sudo apt-get purge -y mysql-common mysql-server mysql-client
  13. - nvm install v7.10.0
  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. - npm install -g testcafe
  18. - rm $TRAVIS_BUILD_DIR/.git/shallow
  19. - cd ~/ && bench init frappe-bench --frappe-path $TRAVIS_BUILD_DIR
  20. - cp -r $TRAVIS_BUILD_DIR/test_sites/test_site ~/frappe-bench/sites/
  21. script:
  22. - set -e
  23. - bench --verbose run-tests
  24. - bench reinstall --yes
  25. - testcafe chrome apps/frappe/frappe/tests/testcafe/
  26. before_script:
  27. - mysql -u root -ptravis -e 'create database test_frappe'
  28. - echo "USE mysql;\nCREATE USER 'test_frappe'@'localhost' IDENTIFIED BY 'test_frappe';\nFLUSH PRIVILEGES;\n" | mysql -u root -ptravis
  29. - echo "USE mysql;\nGRANT ALL PRIVILEGES ON \`test_frappe\`.* TO 'test_frappe'@'localhost';\n" | mysql -u root -ptravis
  30. - cd ~/frappe-bench
  31. - npm install babel-core less chokidar babel-preset-es2015 babel-preset-es2016 babel-preset-es2017 babel-preset-babili
  32. - bench use test_site
  33. - bench reinstall --yes
  34. - bench start &
  35. - sleep 10