1
0
mirror of https://github.com/mainflux/mainflux.git synced 2025-05-11 19:29:16 +08:00
2018-05-11 01:00:10 +02:00

30 lines
584 B
YAML

language: go
sudo: false
go:
- "1.8"
- "1.9"
- "1.10"
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 ./...
script:
- 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