Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 
 
 
 

90 Zeilen
2.6 KiB

  1. language: python
  2. dist: trusty
  3. sudo: required
  4. addons:
  5. hosts:
  6. - test_site
  7. mariadb: 10.3
  8. postgresql: 9.5
  9. git:
  10. depth: 1
  11. cache:
  12. - pip
  13. - npm
  14. - yarn
  15. matrix:
  16. include:
  17. - name: "Python 3.6 MariaDB"
  18. python: 3.6
  19. env: DB=mariadb TYPE=server
  20. script: bench --site test_site run-tests --coverage
  21. - name: "Python 3.6 PostgreSQL"
  22. python: 3.6
  23. env: DB=postgres TYPE=server
  24. script: bench --site test_site run-tests --coverage
  25. - name: "Cypress"
  26. python: 3.6
  27. env: DB=mariadb TYPE=ui
  28. before_script: bench --site test_site execute frappe.utils.install.complete_setup_wizard
  29. script: bench --site test_site run-ui-tests frappe --headless
  30. - name: "Python 2.7 MariaDB"
  31. python: 2.7
  32. env: DB=mariadb TYPE=server
  33. script: bench --site test_site run-tests --coverage
  34. install:
  35. - cd ~
  36. - source ./.nvm/nvm.sh
  37. - nvm install v8.10.0
  38. - git clone https://github.com/frappe/bench --depth 1
  39. - pip install -e ./bench
  40. - bench init frappe-bench --skip-assets --python $(which python) --frappe-path $TRAVIS_BUILD_DIR
  41. - mkdir ~/frappe-bench/sites/test_site
  42. - cp $TRAVIS_BUILD_DIR/.travis/$DB.json ~/frappe-bench/sites/test_site/site_config.json
  43. - mysql -u root -e "SET GLOBAL character_set_server = 'utf8mb4'"
  44. - mysql -u root -e "SET GLOBAL collation_server = 'utf8mb4_unicode_ci'"
  45. - mysql -u root -e "CREATE DATABASE test_frappe"
  46. - mysql -u root -e "CREATE USER 'test_frappe'@'localhost' IDENTIFIED BY 'test_frappe'"
  47. - mysql -u root -e "GRANT ALL PRIVILEGES ON \`test_frappe\`.* TO 'test_frappe'@'localhost'"
  48. - mysql -u root -e "UPDATE mysql.user SET Password=PASSWORD('travis') WHERE User='root'"
  49. - mysql -u root -e "FLUSH PRIVILEGES"
  50. - psql -c "CREATE DATABASE test_frappe" -U postgres
  51. - psql -c "CREATE USER test_frappe WITH PASSWORD 'test_frappe'" -U postgres
  52. - wget -O /tmp/wkhtmltox.tar.xz https://github.com/frappe/wkhtmltopdf/raw/master/wkhtmltox-0.12.3_linux-generic-amd64.tar.xz
  53. - tar -xf /tmp/wkhtmltox.tar.xz -C /tmp
  54. - sudo mv /tmp/wkhtmltox/bin/wkhtmltopdf /usr/local/bin/wkhtmltopdf
  55. - sudo chmod o+x /usr/local/bin/wkhtmltopdf
  56. - cd ./frappe-bench
  57. - sed -i 's/watch:/# watch:/g' Procfile
  58. - sed -i 's/schedule:/# schedule:/g' Procfile
  59. - if [ $TYPE == "server" ]; then sed -i 's/socketio:/# socketio:/g' Procfile; fi
  60. - if [ $TYPE == "server" ]; then sed -i 's/redis_socketio:/# redis_socketio:/g' Procfile; fi
  61. - if [ $TYPE == "ui" ]; then bench setup requirements --node; fi
  62. - bench start &
  63. - bench --site test_site reinstall --yes
  64. - bench build --app frappe
  65. after_script:
  66. - pip install python-coveralls
  67. - coveralls -b apps/frappe -d ../../sites/.coverage