Add circleci support (#506)

* add circle config file

* fixed circle.yml

* fixed circle.yml

* fixed circle.yml
This commit is contained in:
Lunny Xiao 2016-12-13 14:27:01 +08:00 committed by GitHub
parent c60f2467a9
commit d701c73498
1 changed files with 17 additions and 0 deletions

17
circle.yml Normal file
View File

@ -0,0 +1,17 @@
dependencies:
override:
# './...' is a relative pattern which means all subdirectories
- go get -t -d -v ./...
- go get -t -d -v github.com/go-xorm/tests
- go build -v
database:
override:
#- echo "CREATE DATABASE xorm_test DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci" | mysql -u root -p
test:
override:
# './...' is a relative pattern which means all subdirectories
- go test -v -race
- cd /home/ubuntu/.go_workspace/src/github.com/go-xorm/tests && ./sqlite3.sh
#- cd /home/ubuntu/.go_workspace/src/github.com/go-xorm/tests && ./mysql.sh