mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
build: only runs db related tests on db.
This commit is contained in:
parent
e33b17fac6
commit
b379b28337
@ -30,7 +30,7 @@ jobs:
|
|||||||
- run: cat docker/blocks/mysql_tests/setup.sql | mysql -h 127.0.0.1 -P 3306 -u root -prootpass
|
- run: cat docker/blocks/mysql_tests/setup.sql | mysql -h 127.0.0.1 -P 3306 -u root -prootpass
|
||||||
- run:
|
- run:
|
||||||
name: mysql integration tests
|
name: mysql integration tests
|
||||||
command: 'GRAFANA_TEST_DB=mysql go test ./pkg/...'
|
command: 'GRAFANA_TEST_DB=mysql go test ./pkg/services/sqlstore/... ./pkg/tsdb/mysql/... '
|
||||||
|
|
||||||
postgres-integration-test:
|
postgres-integration-test:
|
||||||
docker:
|
docker:
|
||||||
@ -49,7 +49,7 @@ jobs:
|
|||||||
- run: 'PGPASSWORD=grafanatest psql -p 5432 -h 127.0.0.1 -U grafanatest -d grafanatest -f docker/blocks/postgres_tests/setup.sql'
|
- run: 'PGPASSWORD=grafanatest psql -p 5432 -h 127.0.0.1 -U grafanatest -d grafanatest -f docker/blocks/postgres_tests/setup.sql'
|
||||||
- run:
|
- run:
|
||||||
name: postgres integration tests
|
name: postgres integration tests
|
||||||
command: 'GRAFANA_TEST_DB=postgres go test ./pkg/...'
|
command: 'GRAFANA_TEST_DB=postgres go test ./pkg/services/sqlstore/... ./pkg/tsdb/postgres/...'
|
||||||
|
|
||||||
codespell:
|
codespell:
|
||||||
docker:
|
docker:
|
||||||
|
Loading…
Reference in New Issue
Block a user