# Lucee Ant Script Runner (super fast way to run Lucee for CI / tests)

**URL:** <https://dev.lucee.org/t/lucee-ant-script-runner-super-fast-way-to-run-lucee-for-ci-tests/8448>\
**Category:** hacking\
**Created:** [June 17, 2021, 1:15pm UTC](https://dev.lucee.org/t/lucee-ant-script-runner-super-fast-way-to-run-lucee-for-ci-tests/8448 "2021-06-17T13:15:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zackster](https://dev.lucee.org/user_avatar/dev.lucee.org/zackster/32/3484_2.png) [@Zackster](https://dev.lucee.org/u/Zackster)\
**Post date:** [June 17, 2021, 1:15pm UTC](https://dev.lucee.org/t/lucee-ant-script-runner-super-fast-way-to-run-lucee-for-ci-tests/8448/1 "2021-06-17T13:15:02Z")

</div>

You know how Lucee supports the jsr-223 script runner stuff?

Here’s a simple ant project to quickly run Lucee via the command line, awesome for CI stuff, adapted from the Lucee core build

 ![image](https://dev.lucee.org/uploads/default/original/2X/1/100330f1ebcddc39fd6e53b82eb2e071a2ae639d.png)

> **[GitHub - zspitzer/lucee-script-engine-runner: CFML Ant script runner for...](https://github.com/zspitzer/lucee-script-engine-runner)**
>
> CFML Ant script runner for Lucee Server JSR-223. Contribute to zspitzer/lucee-script-engine-runner development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![Zackster](https://dev.lucee.org/user_avatar/dev.lucee.org/zackster/32/3484_2.png) [@Zackster](https://dev.lucee.org/u/Zackster)\
**Post date:** [June 17, 2021, 4:10pm UTC](https://dev.lucee.org/t/lucee-ant-script-runner-super-fast-way-to-run-lucee-for-ci-tests/8448/2 "2021-06-17T16:10:39Z")

</div>

I have the Lucee docs build process running using this via a GitHub Action, which saves around 50s from the command box install.

It’s caching all the required Maven packages which also speeds things up, it looks like GitHub is already caching the lucee.jar download locally

> <https://github.com/zspitzer/lucee-docs/blob/master/.github/workflows/test.yml#L30>

The main gotcha with this approach is that this (currently) runs the script without using `Application.cfc`, one alternative solution would be to use the hidden `_internalRequest` to run the template, which would use the `Application.cfc`

Here’s an example of the log output from a test job

> <https://github.com/zspitzer/lucee-docs/actions/runs/947029541/jobs/989116810>
