circle.yml 1.1 KB

12345678910111213141516171819202122232425
  1. dependencies:
  2. override:
  3. # './...' is a relative pattern which means all subdirectories
  4. - go get -t -d -v ./...
  5. - go get -t -d -v github.com/go-xorm/tests
  6. - go build -v
  7. database:
  8. override:
  9. - mysql -u root -e "CREATE DATABASE xorm_test DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci"
  10. - mysql -u root -e "CREATE DATABASE xorm_test1 DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci"
  11. - mysql -u root -e "CREATE DATABASE xorm_test2 DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci"
  12. - mysql -u root -e "CREATE DATABASE xorm_test3 DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci"
  13. - createdb -p 5432 -e -U postgres xorm_test
  14. - createdb -p 5432 -e -U postgres xorm_test1
  15. - createdb -p 5432 -e -U postgres xorm_test2
  16. - createdb -p 5432 -e -U postgres xorm_test3
  17. test:
  18. override:
  19. # './...' is a relative pattern which means all subdirectories
  20. - go test -v -race
  21. - cd /home/ubuntu/.go_workspace/src/github.com/go-xorm/tests && ./sqlite3.sh
  22. - cd /home/ubuntu/.go_workspace/src/github.com/go-xorm/tests && ./mysql.sh
  23. - cd /home/ubuntu/.go_workspace/src/github.com/go-xorm/tests && ./postgres.sh