add pkgs
This commit is contained in:
parent
ef74f2c46e
commit
a287db3774
103
wercker.yml
103
wercker.yml
@ -63,11 +63,11 @@ services:
|
|||||||
- name: mssql
|
- name: mssql
|
||||||
id: mcmoe/mssqldocker:latest
|
id: mcmoe/mssqldocker:latest
|
||||||
env:
|
env:
|
||||||
ACCEPT_EULA: Y
|
ACCEPT_EULA: Y
|
||||||
SA_PASSWORD: LoremIpsum86
|
SA_PASSWORD: LoremIpsum86
|
||||||
MSSQL_DB: gorm
|
MSSQL_DB: gorm
|
||||||
MSSQL_USER: gorm
|
MSSQL_USER: gorm
|
||||||
MSSQL_PASSWORD: LoremIpsum86
|
MSSQL_PASSWORD: LoremIpsum86
|
||||||
|
|
||||||
# The steps that will be executed in the build pipeline
|
# The steps that will be executed in the build pipeline
|
||||||
build:
|
build:
|
||||||
@ -77,78 +77,81 @@ build:
|
|||||||
# at the right place in the workspace tree
|
# at the right place in the workspace tree
|
||||||
- setup-go-workspace
|
- setup-go-workspace
|
||||||
|
|
||||||
|
- pkg-config
|
||||||
|
- gcc
|
||||||
|
- wget
|
||||||
# Gets the dependencies
|
# Gets the dependencies
|
||||||
- script:
|
- script:
|
||||||
name: go get
|
name: go get
|
||||||
code: |
|
code: |
|
||||||
cd $WERCKER_SOURCE_DIR
|
cd $WERCKER_SOURCE_DIR
|
||||||
go version
|
go version
|
||||||
go get -t -v ./...
|
go get -t -v ./...
|
||||||
|
|
||||||
# Build the project
|
# Build the project
|
||||||
- script:
|
- script:
|
||||||
name: go build
|
name: go build
|
||||||
code: |
|
code: |
|
||||||
go build ./...
|
go build ./...
|
||||||
|
|
||||||
# Test the project
|
# Test the project
|
||||||
- script:
|
- script:
|
||||||
name: test sqlite
|
name: test sqlite
|
||||||
code: |
|
code: |
|
||||||
go test -race -v ./...
|
go test -race -v ./...
|
||||||
|
|
||||||
- script:
|
- script:
|
||||||
name: test mariadb
|
name: test mariadb
|
||||||
code: |
|
code: |
|
||||||
GORM_DIALECT=mysql GORM_DSN="gorm:gorm@tcp(mariadb:3306)/gorm?charset=utf8&parseTime=True" go test -race ./...
|
GORM_DIALECT=mysql GORM_DSN="gorm:gorm@tcp(mariadb:3306)/gorm?charset=utf8&parseTime=True" go test -race ./...
|
||||||
|
|
||||||
- script:
|
- script:
|
||||||
name: test mysql
|
name: test mysql
|
||||||
code: |
|
code: |
|
||||||
GORM_DIALECT=mysql GORM_DSN="gorm:gorm@tcp(mysql:3306)/gorm?charset=utf8&parseTime=True" go test -race ./...
|
GORM_DIALECT=mysql GORM_DSN="gorm:gorm@tcp(mysql:3306)/gorm?charset=utf8&parseTime=True" go test -race ./...
|
||||||
|
|
||||||
- script:
|
- script:
|
||||||
name: test mysql5.7
|
name: test mysql5.7
|
||||||
code: |
|
code: |
|
||||||
GORM_DIALECT=mysql GORM_DSN="gorm:gorm@tcp(mysql57:3306)/gorm?charset=utf8&parseTime=True" go test -race ./...
|
GORM_DIALECT=mysql GORM_DSN="gorm:gorm@tcp(mysql57:3306)/gorm?charset=utf8&parseTime=True" go test -race ./...
|
||||||
|
|
||||||
- script:
|
- script:
|
||||||
name: test mysql5.6
|
name: test mysql5.6
|
||||||
code: |
|
code: |
|
||||||
GORM_DIALECT=mysql GORM_DSN="gorm:gorm@tcp(mysql56:3306)/gorm?charset=utf8&parseTime=True" go test -race ./...
|
GORM_DIALECT=mysql GORM_DSN="gorm:gorm@tcp(mysql56:3306)/gorm?charset=utf8&parseTime=True" go test -race ./...
|
||||||
|
|
||||||
- script:
|
- script:
|
||||||
name: test postgres
|
name: test postgres
|
||||||
code: |
|
code: |
|
||||||
GORM_DIALECT=postgres GORM_DSN="host=postgres user=gorm password=gorm DB.name=gorm port=5432 sslmode=disable" go test -race ./...
|
GORM_DIALECT=postgres GORM_DSN="host=postgres user=gorm password=gorm DB.name=gorm port=5432 sslmode=disable" go test -race ./...
|
||||||
|
|
||||||
- script:
|
- script:
|
||||||
name: test postgres96
|
name: test postgres96
|
||||||
code: |
|
code: |
|
||||||
GORM_DIALECT=postgres GORM_DSN="host=postgres96 user=gorm password=gorm DB.name=gorm port=5432 sslmode=disable" go test -race ./...
|
GORM_DIALECT=postgres GORM_DSN="host=postgres96 user=gorm password=gorm DB.name=gorm port=5432 sslmode=disable" go test -race ./...
|
||||||
|
|
||||||
- script:
|
- script:
|
||||||
name: test postgres95
|
name: test postgres95
|
||||||
code: |
|
code: |
|
||||||
GORM_DIALECT=postgres GORM_DSN="host=postgres95 user=gorm password=gorm DB.name=gorm port=5432 sslmode=disable" go test -race ./...
|
GORM_DIALECT=postgres GORM_DSN="host=postgres95 user=gorm password=gorm DB.name=gorm port=5432 sslmode=disable" go test -race ./...
|
||||||
|
|
||||||
- script:
|
- script:
|
||||||
name: test postgres94
|
name: test postgres94
|
||||||
code: |
|
code: |
|
||||||
GORM_DIALECT=postgres GORM_DSN="host=postgres94 user=gorm password=gorm DB.name=gorm port=5432 sslmode=disable" go test -race ./...
|
GORM_DIALECT=postgres GORM_DSN="host=postgres94 user=gorm password=gorm DB.name=gorm port=5432 sslmode=disable" go test -race ./...
|
||||||
|
|
||||||
- script:
|
- script:
|
||||||
name: test postgres93
|
name: test postgres93
|
||||||
code: |
|
code: |
|
||||||
GORM_DIALECT=postgres GORM_DSN="host=postgres93 user=gorm password=gorm DB.name=gorm port=5432 sslmode=disable" go test -race ./...
|
GORM_DIALECT=postgres GORM_DSN="host=postgres93 user=gorm password=gorm DB.name=gorm port=5432 sslmode=disable" go test -race ./...
|
||||||
|
|
||||||
- script:
|
- script:
|
||||||
name: test mssql
|
name: test mssql
|
||||||
code: |
|
code: |
|
||||||
GORM_DIALECT=mssql GORM_DSN="sqlserver://gorm:LoremIpsum86@mssql:1433?database=gorm" go test -race ./...
|
GORM_DIALECT=mssql GORM_DSN="sqlserver://gorm:LoremIpsum86@mssql:1433?database=gorm" go test -race ./...
|
||||||
|
|
||||||
- script:
|
- script:
|
||||||
name: codecov
|
name: codecov
|
||||||
code: |
|
code: |
|
||||||
go test -race -coverprofile=coverage.txt -covermode=atomic ./...
|
go test -race -coverprofile=coverage.txt -covermode=atomic ./...
|
||||||
bash <(curl -s https://codecov.io/bash)
|
bash <(curl -s https://codecov.io/bash)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user