add oracle deps for testing
This commit is contained in:
parent
d959159ccf
commit
ade888bb40
11
wercker.yml
11
wercker.yml
@ -68,6 +68,8 @@ services:
|
|||||||
MSSQL_DB: gorm
|
MSSQL_DB: gorm
|
||||||
MSSQL_USER: gorm
|
MSSQL_USER: gorm
|
||||||
MSSQL_PASSWORD: LoremIpsum86
|
MSSQL_PASSWORD: LoremIpsum86
|
||||||
|
- name: oracle
|
||||||
|
id: jimlambrt/gorm-ora:latest
|
||||||
|
|
||||||
# The steps that will be executed in the build pipeline
|
# The steps that will be executed in the build pipeline
|
||||||
build:
|
build:
|
||||||
@ -81,12 +83,13 @@ build:
|
|||||||
name: install-oci-pkgs
|
name: install-oci-pkgs
|
||||||
code: |
|
code: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get -y install pkg-config gcc wget alien libaio1 libaio-dev
|
sudo apt-get -y install pkg-config gcc wget alien libaio1 libaio-dev unzip netcat
|
||||||
|
|
||||||
- script:
|
- script:
|
||||||
name: install-instantclients
|
name: install-instantclients
|
||||||
code: |
|
code: |
|
||||||
cd $WERCKER_SOURCE_DIR/dialects/oci8/contrib
|
cd $WERCKER_SOURCE_DIR/dialects/oci8/contrib
|
||||||
|
unzip instaclients.zip
|
||||||
alien -i oracle-instantclient19.6-basic-19.6.0.0.0-1.x86_64.rpm
|
alien -i oracle-instantclient19.6-basic-19.6.0.0.0-1.x86_64.rpm
|
||||||
alien -i oracle-instantclient19.6-sqlplus-19.6.0.0.0-1.x86_64.rpm
|
alien -i oracle-instantclient19.6-sqlplus-19.6.0.0.0-1.x86_64.rpm
|
||||||
alien -i oracle-instantclient19.6-devel-19.6.0.0.0-1.x86_64.rpm
|
alien -i oracle-instantclient19.6-devel-19.6.0.0.0-1.x86_64.rpm
|
||||||
@ -178,6 +181,12 @@ build:
|
|||||||
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:
|
||||||
|
name: test oracle
|
||||||
|
code: |
|
||||||
|
go run $WERCKER_SOURCE_DIR/dialects/oci8/contrib/connection.go
|
||||||
|
GORM_DIALECT=oci8 GORM_DSN="gorm/gorm@oracle:1521/XEPDB1" go test -race ./...
|
||||||
|
|
||||||
- script:
|
- script:
|
||||||
name: codecov
|
name: codecov
|
||||||
code: |
|
code: |
|
||||||
|
Loading…
x
Reference in New Issue
Block a user