mirror of
https://github.com/mainflux/mainflux.git
synced 2025-05-11 19:29:16 +08:00

* Update dependencies Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com> * Fix compose files and configs Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com> * Upgrade image versions Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com> * Update Postgres version Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com> * Update test dependencies Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com> * Fix fkey error handling Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
34 lines
702 B
YAML
34 lines
702 B
YAML
language: go
|
|
|
|
sudo: false
|
|
|
|
go:
|
|
- "1.13"
|
|
- "1.14"
|
|
- "1.15"
|
|
- "1.16"
|
|
|
|
services:
|
|
- mysql
|
|
- postgresql
|
|
|
|
before_install:
|
|
- mysql -e "CREATE DATABASE IF NOT EXISTS test;" -uroot
|
|
- mysql -e "CREATE DATABASE IF NOT EXISTS test_env;" -uroot
|
|
- psql -c "CREATE DATABASE test;" -U postgres
|
|
|
|
install:
|
|
- go get -t ./...
|
|
- go install ./...
|
|
- go get -u github.com/kisielk/errcheck
|
|
|
|
script:
|
|
- CGO_ENABLED=0 go build -v .
|
|
- go test -v ./...
|
|
- bash test-integration/postgres.sh
|
|
- bash test-integration/mysql.sh
|
|
- bash test-integration/mysql-flag.sh
|
|
- bash test-integration/mysql-env.sh
|
|
- bash test-integration/sqlite.sh
|
|
- errcheck ./...
|