-
Notifications
You must be signed in to change notification settings - Fork 209
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BuildCmp Value Error Message Changed
- Loading branch information
Showing
46 changed files
with
1,716 additions
and
1,114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
version: 2 | ||
jobs: | ||
build: | ||
docker: | ||
- image: circleci/golang:1.10 | ||
environment: | ||
- DBR_TEST_MYSQL_DSN=root:root@tcp(127.0.0.1:3306)/circle_test | ||
- DBR_TEST_POSTGRES_DSN=postgres://postgres:[email protected]:5432/postgres?sslmode=disable | ||
- image: percona:5.7.20 | ||
environment: | ||
- MYSQL_DATABASE=circle_test | ||
- MYSQL_ROOT_PASSWORD=root | ||
- image: postgres:9.6-alpine | ||
|
||
working_directory: /go/src/github.com/gocraft/dbr | ||
steps: | ||
- checkout | ||
- run: | ||
name: Install dockerize | ||
command: wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz && sudo tar -C /usr/local/bin -xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz && rm dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz | ||
environment: | ||
DOCKERIZE_VERSION: v0.3.0 | ||
- run: | ||
name: Wait for db | ||
command: dockerize -wait tcp://127.0.0.1:3306 -wait tcp://127.0.0.1:5432 -timeout 1m | ||
- run: go get -t ./... | ||
- run: go test -v -cover -bench . ./... |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.