Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Metabase
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Engineering Digital Service
Metabase
Commits
ea3f4dc7
Unverified
Commit
ea3f4dc7
authored
5 years ago
by
Cam Saul
Browse files
Options
Downloads
Patches
Plain Diff
parameterized test-driver command
parent
f029434c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.circleci/config.yml
+78
-140
78 additions, 140 deletions
.circleci/config.yml
with
78 additions
and
140 deletions
.circleci/config.yml
+
78
−
140
View file @
ea3f4dc7
...
...
@@ -59,6 +59,24 @@ commands:
while ! nc -z localhost << parameters.port >>; do sleep 0.1; done
no_output_timeout
:
5m
test-driver
:
parameters
:
driver
:
type
:
string
timeout
:
type
:
string
default
:
5m
steps
:
-
run
:
name
:
Run backend tests << parameters.driver >>
environment
:
DRIVERS
:
h2,<< parameters.driver >>
command
:
>
/home/circleci/metabase/metabase/.circleci/skip-driver-tests.sh << parameters.driver >> ||
lein with-profile +ci test
no_output_timeout
:
<< parameters.timeout >>
jobs
:
########################################################################################################################
...
...
@@ -185,24 +203,19 @@ jobs:
docker
:
-
image
:
circleci/clojure:lein-2.8.1-node-browsers
-
image
:
circleci/mysql:5.7.23
environment
:
MB_ENCRYPTION_SECRET_KEY
:
Orw0AAyzkO/kPTLJRxiyKoBHXa/d6ZcO+p+gpZO/wSQ=
MB_DB_TYPE
:
mysql
MB_DB_HOST
:
localhost
MB_DB_PORT
:
3306
MB_DB_DBNAME
:
circle_test
MB_DB_USER
:
root
MB_MYSQL_TEST_USER
:
root
steps
:
-
attach-workspace
-
restore-be-deps-cache
-
run
:
name
:
Run backend unit tests (MySQL)
environment
:
DRIVERS
:
h2,mysql
MB_ENCRYPTION_SECRET_KEY
:
Orw0AAyzkO/kPTLJRxiyKoBHXa/d6ZcO+p+gpZO/wSQ=
MB_DB_TYPE
:
mysql
MB_DB_HOST
:
localhost
MB_DB_PORT
:
3306
MB_DB_DBNAME
:
circle_test
MB_DB_USER
:
root
MB_MYSQL_TEST_USER
:
root
command
:
>
/home/circleci/metabase/metabase/.circleci/skip-driver-tests.sh mysql ||
lein with-profile +ci test
no_output_timeout
:
5m
-
test-driver
:
driver
:
mysql
be-tests-postgres
:
executor
:
default
...
...
@@ -212,23 +225,18 @@ jobs:
environment
:
POSTGRES_USER
:
circle_test
POSTGRES_DB
:
circle_test
environment
:
MB_DB_TYPE
:
postgres
MB_DB_PORT
:
5432
MB_DB_HOST
:
localhost
MB_DB_DBNAME
:
circle_test
MB_DB_USER
:
circle_test
MB_POSTGRESQL_TEST_USER
:
circle_test
steps
:
-
attach-workspace
-
restore-be-deps-cache
-
run
:
name
:
Run backend unit tests (Postgres)
environment
:
DRIVERS
:
h2,postgres
MB_DB_TYPE
:
postgres
MB_DB_PORT
:
5432
MB_DB_HOST
:
localhost
MB_DB_DBNAME
:
circle_test
MB_DB_USER
:
circle_test
MB_POSTGRESQL_TEST_USER
:
circle_test
command
:
>
/home/circleci/metabase/metabase/.circleci/skip-driver-tests.sh postgres ||
lein with-profile +ci test
no_output_timeout
:
5m
-
test-driver
:
driver
:
postgres
be-tests-sparksql
:
executor
:
default
...
...
@@ -241,14 +249,8 @@ jobs:
-
wait-for-driver
:
driver
:
sparksql
port
:
10000
-
run
:
name
:
Run backend unit tests (SparkSQL)
environment
:
DRIVERS
:
h2,sparksql
command
:
>
/home/circleci/metabase/metabase/.circleci/skip-driver-tests.sh sparksql ||
lein with-profile +ci test
no_output_timeout
:
5m
-
test-driver
:
driver
:
sparksql
be-tests-mongo
:
executor
:
default
...
...
@@ -258,14 +260,8 @@ jobs:
steps
:
-
attach-workspace
-
restore-be-deps-cache
-
run
:
name
:
Run backend unit tests (MongoDB 3.4)
environment
:
DRIVERS
:
h2,mongo
command
:
>
/home/circleci/metabase/metabase/.circleci/skip-driver-tests.sh mongo ||
lein with-profile +ci test
no_output_timeout
:
5m
-
test-driver
:
driver
:
mongo
be-tests-vertica
:
executor
:
default
...
...
@@ -279,14 +275,8 @@ jobs:
driver
:
vertica
source
:
VERTICA_JDBC_JAR
dest
:
vertica-jdbc-7.1.2-0.jar
-
run
:
name
:
Run backend unit tests (Vertica)
environment
:
DRIVERS
:
h2,vertica
command
:
>
/home/circleci/metabase/metabase/.circleci/skip-driver-tests.sh vertica ||
lein with-profile +ci test
no_output_timeout
:
5m
-
test-driver
:
driver
:
vertica
be-tests-snowflake
:
executor
:
default
...
...
@@ -295,111 +285,58 @@ jobs:
steps
:
-
attach-workspace
-
restore-be-deps-cache
-
run
:
name
:
Run backend unit tests (Snowflake)
environment
:
DRIVERS
:
h2,snowflake
command
:
>
/home/circleci/metabase/metabase/.circleci/skip-driver-tests.sh snowflake ||
lein with-profile +ci test
no_output_timeout
:
10m
yaml-linter
:
executor
:
default
steps
:
-
attach-workspace
-
run
:
name
:
Install yamllint
command
:
npm install yaml-lint
no_output_timeout
:
2m
-
run
:
name
:
Lint YAML files
command
:
./node_modules/.bin/yamllint `find resources -name '*.yaml'`
no_output_timeout
:
2m
-
test-driver
:
driver
:
snowflake
timeout
:
10m
be-tests-sqlserver
:
executor
:
default
steps
:
-
attach-workspace
-
restore-be-deps-cache
-
run
:
name
:
Run backend unit tests (SQL Server)
environment
:
DRIVERS
:
h2,sqlserver
command
:
>
/home/circleci/metabase/metabase/.circleci/skip-driver-tests.sh sqlserver ||
lein with-profile +ci test
no_output_timeout
:
5m
-
test-driver
:
driver
:
sqlserver
be-tests-bigquery
:
executor
:
default
steps
:
-
attach-workspace
-
restore-be-deps-cache
-
run
:
name
:
Run backend unit tests (BigQuery)
environment
:
DRIVERS
:
h2,bigquery
command
:
>
/home/circleci/metabase/metabase/.circleci/skip-driver-tests.sh bigquery ||
lein with-profile +ci test
no_output_timeout
:
5m
-
test-driver
:
driver
:
bigquery
be-tests-googleanalytics
:
executor
:
default
steps
:
-
attach-workspace
-
restore-be-deps-cache
-
run
:
name
:
Run backend unit tests (Google Analytics)
environment
:
DRIVERS
:
h2,googleanalytics
command
:
>
/home/circleci/metabase/metabase/.circleci/skip-driver-tests.sh googleanalytics ||
lein with-profile +ci test
no_output_timeout
:
5m
-
test-driver
:
driver
:
googleanalytics
be-tests-sqlite
:
executor
:
default
steps
:
-
attach-workspace
-
restore-be-deps-cache
-
run
:
name
:
Run backend unit tests (SQLite)
environment
:
DRIVERS
:
h2,sqlite
command
:
>
/home/circleci/metabase/metabase/.circleci/skip-driver-tests.sh sqlite ||
lein with-profile +ci test
-
test-driver
:
driver
:
sqlite
be-tests-druid
:
executor
:
default
steps
:
-
attach-workspace
-
restore-be-deps-cache
-
run
:
name
:
Run backend unit tests (Druid)
environment
:
DRIVERS
:
h2,druid
command
:
>
/home/circleci/metabase/metabase/.circleci/skip-driver-tests.sh druid ||
lein with-profile +ci test
no_output_timeout
:
5m
-
test-driver
:
driver
:
druid
be-tests-redshift
:
executor
:
default
steps
:
-
attach-workspace
-
restore-be-deps-cache
-
run
:
name
:
Run backend unit tests (Redshift)
environment
:
DRIVERS
:
h2,redshift
command
:
>
/home/circleci/metabase/metabase/.circleci/skip-driver-tests.sh redshift ||
lein with-profile +ci test
no_output_timeout
:
10m
-
test-driver
:
driver
:
redshift
timeout
:
10m
be-tests-presto
:
executor
:
default
...
...
@@ -408,23 +345,17 @@ jobs:
-
image
:
metabase/presto-mb-ci
environment
:
JAVA_TOOL_OPTIONS
:
"
-Xmx2g"
environment
:
MB_PRESTO_TEST_HOST
:
localhost
MB_PRESTO_TEST_PORT
:
8080
steps
:
-
attach-workspace
-
restore-be-deps-cache
-
wait-for-driver
:
driver
:
presto
port
:
8080
-
run
:
name
:
Run backend unit tests (Presto)
environment
:
DRIVERS
:
h2,presto
MB_PRESTO_TEST_HOST
:
localhost
MB_PRESTO_TEST_PORT
:
8080
command
:
>
/home/circleci/metabase/metabase/.circleci/skip-driver-tests.sh presto ||
lein with-profile +ci test
no_output_timeout
:
5m
-
test-driver
:
driver
:
presto
be-tests-oracle
:
executor
:
default
...
...
@@ -435,14 +366,21 @@ jobs:
driver
:
oracle
source
:
ORACLE_JDBC_JAR
dest
:
ojdbc7.jar
-
test-driver
:
driver
:
oracle
yaml-linter
:
executor
:
default
steps
:
-
attach-workspace
-
run
:
name
:
Run backend unit tests (Oracle)
environme
nt
:
DRIVERS
:
h2,oracle
command
:
>
/home/circleci/metabase/metabase/.circleci/skip-driver-tests.sh oracle ||
lein with-profile +ci test
no_output_timeout
:
5
m
name
:
Install yamllint
command
:
npm install yaml-li
nt
no_output_timeout
:
2m
-
run
:
name
:
Lint YAML files
command
:
./node_modules/.bin/yamllint `find resources -name '*.yaml'`
no_output_timeout
:
2
m
be-tests-migrate-to-postgres
:
executor
:
default
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment