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
208205d8
Commit
208205d8
authored
9 years ago
by
Cam Saul
Browse files
Options
Downloads
Patches
Plain Diff
Eliminate CircleCI bottleneck.
parent
b3944552
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
build-uberjar
+2
-7
2 additions, 7 deletions
build-uberjar
circle.yml
+2
-2
2 additions, 2 deletions
circle.yml
with
4 additions
and
9 deletions
build-uberjar
+
2
−
7
View file @
208205d8
...
...
@@ -3,13 +3,8 @@
echo
"Running 'npm install' to download javascript dependencies..."
&&
npm
install
&&
if
[
-n
"
$CI_DISABLE_WEBPACK_MINIFICATION
"
]
;
then
echo
"Running 'webpack' to assemble and minify frontend assets..."
./node_modules/webpack/bin/webpack.js
else
echo
"Running 'webpack -p' to assemble and minify frontend assets..."
./node_modules/webpack/bin/webpack.js
-p
fi
&&
echo
"Running 'webpack -p' to assemble and minify frontend assets..."
./node_modules/webpack/bin/webpack.js
-p
&&
if
[
-f
resources/sample-dataset.db.mv.db
]
;
then
echo
"Sample Dataset already generated."
...
...
This diff is collapsed.
Click to expand it.
circle.yml
+
2
−
2
View file @
208205d8
...
...
@@ -21,8 +21,8 @@ test:
# 2) runs Eastwood linter
# 3) Bikeshed linter
# 4) runs JS linter + JS test
# 5) runs
./build-uberjar
-
case $CIRCLE_NODE_INDEX in 0) MB_TEST_DATASETS=h2,mongo,postgres lein test ;; 1) MB_TEST_DATASETS=h2,mysql MB_DB_TYPE=postgres MB_DB_DBNAME=circle_test MB_DB_PORT=5432 MB_DB_USER=ubuntu MB_DB_HOST=localhost lein test ;; 2) lein eastwood ;; 3) lein bikeshed --max-line-length 240 ;; 4) npm install && npm run lint && npm run build && npm run test ;; 5)
CI_DISABLE_WEBPACK_MINIFICATION=1 ./build-
uberjar ;; esac
:
# 5) runs
lein uberjar. (We don't run build-uberjar because we're not really concerned about `npm install` (etc) in this test, which runs elsewhere)
-
case $CIRCLE_NODE_INDEX in 0) MB_TEST_DATASETS=h2,mongo,postgres lein test ;; 1) MB_TEST_DATASETS=h2,mysql MB_DB_TYPE=postgres MB_DB_DBNAME=circle_test MB_DB_PORT=5432 MB_DB_USER=ubuntu MB_DB_HOST=localhost lein test ;; 2) lein eastwood ;; 3) lein bikeshed --max-line-length 240 ;; 4) npm install && npm run lint && npm run build && npm run test ;; 5)
lein
uberjar ;; esac
:
parallel
:
true
deployment
:
master
:
...
...
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