appveyor.yml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. build: false
  2. services:
  3. - postgresql
  4. - mongodb
  5. - mysql
  6. environment:
  7. matrix:
  8. - PYTHON: "C:/Python34"
  9. - PYTHON: "C:/Python35"
  10. - PYTHON: "C:/Python36"
  11. # postgres
  12. POSTGRES_PATH: C:\Program Files\PostgreSQL\9.4
  13. PGUSER: postgres
  14. PGPASSWORD: Password12!
  15. MYSQL_ENV_MYSQL_USER: root
  16. MYSQL_ENV_MYSQL_PASSWORD: Password12!
  17. MYSQL_ENV_MYSQL_DATABASE: sqlectron
  18. MYSQL_PATH: C:\Program Files\MySql\MySQL Server 5.7
  19. MYSQL_PWD: Password12!
  20. MONGOPATH: C:/mongodb
  21. init:
  22. - "ECHO %PYTHON%"
  23. - ps: "ls C:/Python*"
  24. - SET PATH=%MONGOPATH\bin%;%MYSQL_PATH\bin%;%POSTGRES_PATH%\bin;%MYSQL_PATH%\bin;%PATH%
  25. install:
  26. - "%PYTHON%/Scripts/pip.exe install -e ."
  27. - "%PYTHON%/Scripts/pip.exe install -r test_requirements.txt"
  28. - "%PYTHON%/Scripts/pip.exe install -r requirements.txt"
  29. test_script:
  30. - C:/mongodb/bin/mongo.exe pwmantest tests/init_mongo.js
  31. - psql -c "CREATE USER tester WITH PASSWORD '123456';"
  32. - psql -c "create database pwman"
  33. - psql -c "grant ALL ON DATABASE pwman to tester"
  34. - mysql -e "create database pwmantest" -uroot
  35. - mysql -e "create user 'pwman'@'localhost' IDENTIFIED BY '123456'" -uroot
  36. - mysql -e "grant all on pwmantest.* to 'pwman'@'localhost';" -uroot
  37. - "%PYTHON%/Scripts/pip.exe --version"
  38. - "%PYTHON%/python.exe setup.py test"