From d701c7349875c5dd02ccc90f06358d255a74be6c Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Tue, 13 Dec 2016 14:27:01 +0800 Subject: [PATCH] Add circleci support (#506) * add circle config file * fixed circle.yml * fixed circle.yml * fixed circle.yml --- circle.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 circle.yml diff --git a/circle.yml b/circle.yml new file mode 100644 index 00000000..1b543e57 --- /dev/null +++ b/circle.yml @@ -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 \ No newline at end of file