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.

64 lines
1.1 KiB

  1. # github.com/go-task/task
  2. version: '2'
  3. tasks:
  4. dl-deps:
  5. desc: Download cli deps
  6. cmds:
  7. - go get -u github.com/golang/lint/golint
  8. lint:
  9. desc: Runs golint
  10. cmds:
  11. - golint .
  12. test-free:
  13. desc: Test free databases (PG, MySQL and SQLite)
  14. cmds:
  15. - task: test-pg
  16. - task: test-mysql
  17. - task: test-sqlite
  18. test-all:
  19. desc: Test all databases (PG, MySQL, SQLite, SQLServer and Oracle)
  20. cmds:
  21. - task: test-pg
  22. - task: test-mysql
  23. - task: test-sqlite
  24. - task: test-sqlserver
  25. - task: test-oracle
  26. test-pg:
  27. desc: Test PostgreSQL
  28. cmds:
  29. - task: test-db
  30. vars: {DATABASE: postgresql}
  31. test-mysql:
  32. desc: Test MySQL
  33. cmds:
  34. - task: test-db
  35. vars: {DATABASE: mysql}
  36. test-sqlite:
  37. desc: Test SQLite
  38. cmds:
  39. - task: test-db
  40. vars: {DATABASE: sqlite}
  41. test-sqlserver:
  42. desc: Test SQLServer
  43. cmds:
  44. - task: test-db
  45. vars: {DATABASE: sqlserver}
  46. test-oracle:
  47. desc: Test Oracle
  48. cmds:
  49. - task: test-db
  50. vars: {DATABASE: oracle}
  51. test-db:
  52. cmds:
  53. - go test -v -tags {{.DATABASE}}