Просмотр исходного кода

build: only runs db related tests on db.

Leonard Gram 7 лет назад
Родитель
Сommit
b379b28337
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      .circleci/config.yml

+ 2 - 2
.circleci/config.yml

@@ -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:
             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:
     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:
             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:
     docker: