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
f029434c
Unverified
Commit
f029434c
authored
5 years ago
by
Cam Saul
Browse files
Options
Downloads
Patches
Plain Diff
fetch-jdbc-driver-jar & wait-for-driver commands
parent
71de0056
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
+47
-29
47 additions, 29 deletions
.circleci/config.yml
with
47 additions
and
29 deletions
.circleci/config.yml
+
47
−
29
View file @
f029434c
...
...
@@ -26,6 +26,39 @@ commands:
-
fe-deps-{{ checksum "yarn.lock" }}
-
fe-deps-
fetch-jdbc-driver-jar
:
parameters
:
driver
:
type
:
string
source
:
type
:
string
dest
:
type
:
string
steps
:
-
run
:
name
:
Make plugins dir
command
:
mkdir /home/circleci/metabase/metabase/plugins
-
run
:
name
:
Download << parameters.driver >> JDBC driver JAR
command
:
>
/home/circleci/metabase/metabase/.circleci/skip-driver-tests.sh << parameters.driver >> ||
wget --output-document=plugins/<< parameters.dest >> << parameters.source >>
no_output_timeout
:
5m
wait-for-driver
:
parameters
:
driver
:
type
:
string
port
:
type
:
integer
steps
:
-
run
:
name
:
Wait for << parameters.driver >> to be ready
command
:
>
/home/circleci/metabase/metabase/.circleci/skip-driver-tests.sh << parameters.driver >> ||
while ! nc -z localhost << parameters.port >>; do sleep 0.1; done
no_output_timeout
:
5m
jobs
:
########################################################################################################################
...
...
@@ -205,12 +238,9 @@ jobs:
steps
:
-
attach-workspace
-
restore-be-deps-cache
-
run
:
name
:
Wait for SparkSQL to be ready
command
:
>
/home/circleci/metabase/metabase/.circleci/skip-driver-tests.sh sparksql ||
while ! nc -z localhost 10000; do sleep 0.1; done
no_output_timeout
:
5m
-
wait-for-driver
:
driver
:
sparksql
port
:
10000
-
run
:
name
:
Run backend unit tests (SparkSQL)
environment
:
...
...
@@ -245,15 +275,10 @@ jobs:
steps
:
-
attach-workspace
-
restore-be-deps-cache
-
run
:
name
:
Make plugins dir
command
:
mkdir /home/circleci/metabase/metabase/plugins
-
run
:
name
:
Download Vertica JAR
command
:
>
/home/circleci/metabase/metabase/.circleci/skip-driver-tests.sh vertica ||
wget --output-document=plugins/vertica-jdbc-7.1.2-0.jar $VERTICA_JDBC_JAR
no_output_timeout
:
5m
-
fetch-jdbc-driver-jar
:
driver
:
vertica
source
:
VERTICA_JDBC_JAR
dest
:
vertica-jdbc-7.1.2-0.jar
-
run
:
name
:
Run backend unit tests (Vertica)
environment
:
...
...
@@ -386,12 +411,9 @@ jobs:
steps
:
-
attach-workspace
-
restore-be-deps-cache
-
run
:
name
:
Wait for Presto to be ready
command
:
>
/home/circleci/metabase/metabase/.circleci/skip-driver-tests.sh presto ||
while ! nc -z localhost 8080; do sleep 0.1; done
no_output_timeout
:
5m
-
wait-for-driver
:
driver
:
presto
port
:
8080
-
run
:
name
:
Run backend unit tests (Presto)
environment
:
...
...
@@ -409,14 +431,10 @@ jobs:
steps
:
-
attach-workspace
-
restore-be-deps-cache
-
run
:
name
:
Make plugins dir
command
:
mkdir /home/circleci/metabase/metabase/plugins
-
run
:
name
:
Download Oracle JAR
command
:
>
/home/circleci/metabase/metabase/.circleci/skip-driver-tests.sh oracle ||
wget --output-document=/home/circleci/metabase/metabase/plugins/ojdbc7.jar $ORACLE_JDBC_JAR
-
fetch-jdbc-driver-jar
:
driver
:
oracle
source
:
ORACLE_JDBC_JAR
dest
:
ojdbc7.jar
-
run
:
name
:
Run backend unit tests (Oracle)
environment
:
...
...
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