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
b9eb3ff7
Commit
b9eb3ff7
authored
9 years ago
by
Cam Saul
Browse files
Options
Downloads
Patches
Plain Diff
Disable webpack minification on CircleCI
parent
8fd3e541
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
circle.yml
+1
-1
1 addition, 1 deletion
circle.yml
lein_tasks/leiningen/webpack.clj
+4
-3
4 additions, 3 deletions
lein_tasks/leiningen/webpack.clj
with
5 additions
and
4 deletions
circle.yml
+
1
−
1
View file @
b9eb3ff7
...
...
@@ -9,5 +9,5 @@ test:
# 2) runs Eastwood linter
# 3) runs JS linter + Bikeshed linter
# 4) runs lein uberjar
-
case $CIRCLE_NODE_INDEX in 0) MB_TEST_DATASETS=generic-sql,mongo lein test ;; 1) 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) ./lint_js.sh && lein bikeshed --max-line-length 240 ;; 4) lein uberjar ;; esac
:
-
case $CIRCLE_NODE_INDEX in 0) MB_TEST_DATASETS=generic-sql,mongo lein test ;; 1) 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) ./lint_js.sh && lein bikeshed --max-line-length 240 ;; 4)
CI_DISABLE_WEBPACK_MINIFICATION=1
lein uberjar ;; esac
:
parallel
:
true
This diff is collapsed.
Click to expand it.
lein_tasks/leiningen/webpack.clj
+
4
−
3
View file @
b9eb3ff7
(
ns
leiningen.webpack
(
:use
clojure.java.shell
))
(
:require
[
clojure.java.shell
:refer
:all
]))
;; Set the CI_DISABLE_WEBPACK_MINIFICATION environment variable to skip minification which takes ~6+ minutes on CircleCI
(
defn
webpack
[
projects
&
args
]
;; TODO - some better validations such as checking that we have webpack available
(
println
"Running `webpack -p` to assemble and minify frontend assets"
)
(
let
[
result
(
sh
(
str
(
:root
projects
)
"/node_modules/webpack/bin/webpack.js"
)
"-p"
)]
(
let
[
result
(
sh
(
str
(
:root
projects
)
"/node_modules/webpack/bin/webpack.js"
)
(
when-not
(
System/getenv
"CI_DISABLE_WEBPACK_MINIFICATION"
)
"-p"
))]
(
if
(
=
0
(
:exit
result
))
(
println
(
:out
result
))
(
println
(
:err
result
)))))
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