-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
35 lines (24 loc) · 916 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
GBatch - Simple Groovy script batch
===================================
Features:
- Run series of Groovy script by order
- All scripts are shared binding context
- Run script upto specific target
- Support both forword and reverse batch order (setup and teardown)
Usage:
- Create series of Groovy script which have file name format like:
S[order]_[target name].groovy
for setup script and
K[order]_[target name].groovy
for teardown script. If run in teardown mode, both S and K files have to exists
- Create __init__.groovy script to be the first running script of both setup and teardown (if need)
- Run setup batch:
gbatch setup
- Print all target names
gbatch -p
- Run teardown batch:
gbatch teardown
- Run setup scripts in other directory
gbatch -d [script directory] setup
- Run upto specific target name
gbatch -t [target name] setup