25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

34 lines
921 B

  1. language: python
  2. python:
  3. - "2.7"
  4. services:
  5. - mysql
  6. install:
  7. - sudo service mysql stop
  8. - sudo apt-get install python-software-properties
  9. - sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db
  10. - sudo add-apt-repository 'deb http://ftp.osuosl.org/pub/mariadb/repo/5.5/ubuntu precise main'
  11. - sudo apt-get update
  12. - sudo apt-get purge -y mysql-common
  13. - sudo apt-get install mariadb-server mariadb-common libmariadbclient-dev
  14. - CFLAGS=-O0 pip install -r requirements.txt
  15. - pip install --editable .
  16. script:
  17. - cd ./test_sites/
  18. - frappe --use test_site
  19. - frappe --reinstall
  20. - frappe -b
  21. - frappe --build_website
  22. - frappe --serve_test &
  23. - frappe --verbose --run_tests
  24. before_script:
  25. - mysql -e 'create database test_frappe'
  26. - echo "USE mysql;\nCREATE USER 'test_frappe'@'localhost' IDENTIFIED BY 'test_frappe';\nFLUSH PRIVILEGES;\n" | mysql -u root