-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathverify.groovy
More file actions
16 lines (15 loc) · 1.21 KB
/
verify.groovy
File metadata and controls
16 lines (15 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
def buildLog = new File(basedir, "build.log").text
assert buildLog.contains("Compressed app.js") : "Should log compression of app.js"
assert buildLog.contains("Compressed style.css") : "Should log compression of style.css"
assert buildLog.contains("Compressed icon.svg") : "Should log compression of icon.svg"
def staticDir = new File(basedir, "target/classes/static")
assert new File(staticDir, "app.js.br").exists() : "Brotli file should exist for app.js"
assert new File(staticDir, "app.js.gz").exists() : "Gzip file should exist for app.js"
assert new File(staticDir, "app.js.zst").exists() : "Zstd file should exist for app.js"
assert new File(staticDir, "style.css.br").exists() : "Brotli file should exist for style.css"
assert new File(staticDir, "style.css.gz").exists() : "Gzip file should exist for style.css"
assert new File(staticDir, "style.css.zst").exists() : "Zstd file should exist for style.css"
assert new File(staticDir, "icon.svg.br").exists() : "Brotli file should exist for icon.svg"
assert new File(staticDir, "icon.svg.gz").exists() : "Gzip file should exist for icon.svg"
assert new File(staticDir, "icon.svg.zst").exists() : "Zstd file should exist for icon.svg"
assert buildLog.contains("BUILD SUCCESS")