Skip to content

Commit

Permalink
closure jar
Browse files Browse the repository at this point in the history
  • Loading branch information
OscarLuu committed Jul 24, 2024
1 parent b77c18a commit c85252e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ jobs:
python -m pip install pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
sudo apt-get update
sudo apt-get install minify
sudo apt-get install -y wget minify
wget "https://dl.google.com/closure-compiler/compiler-20150315.zip"
unzip compiler-20150315.zip compiler.jar
- name: Test with pytest
run: |
pytest
Expand Down
3 changes: 2 additions & 1 deletion assetman/tests/test_compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ def run_compiler(test_needs_compile=True, **opts):
to our CDN.
"""
minify_compressor_path = "/usr/bin/minify"
manifest = assetman.compile.run(get_settings(test_needs_compile=test_needs_compile, minify_compressor_path=minify_compressor_path, **opts))
closure_compiler = "closure.jar"
manifest = assetman.compile.run(get_settings(test_needs_compile=test_needs_compile, minify_compressor_path=minify_compressor_path, closure_compiler=closure_compiler, **opts))
logging.debug(manifest)
return manifest

Expand Down

0 comments on commit c85252e

Please sign in to comment.