-
-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathkevinfile.example
55 lines (48 loc) · 1.94 KB
/
kevinfile.example
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# kevin control file
# syntax similar to makefiles
# * each step can depend on other steps
# * it can have optional settings like cwd or env variables
# * the step consists of one or more commands
# * after all commands of a step, output files can be saved
#
# EXAMPLE:
#
# stepname: other-stepname other-stepname-that-must-suceed-before bla bla
# - optional rule setup stuff, e.g.:
# - env: somekey=somevalue text="can be quoted" # set environment variables
# - hidden # hide the step from the active step list
# - skip # skip this step
# - skip (? if job == "some_jobname" ?) # skip only if jobname matches
# # available vars: all args of chantal.
#
# # there can be one or more output file declarations.
# # those also support the if-conditionals
# - output: "some/file/to/save/in/static/output/folder" as "output_name"
# - output: "or/some/directory/to/send/" as "output_dir_name"
# - cwd: "~/dir/to/run/the/commands/in/"
#
# # then, the step commands follow:
# echo "some command executed in sh"
# echo "if one command fails, the step will fail"
# echo "it fails when returncode != 0"
#
# cd somewhere/ && echo "each line is in its own shell!"
# echo "so the following command is no longer in 'somewhere/'"
# the steps are executed in order.
# any step with no more pending dependencies is executed.
# if multiple are ready, the first in the order will be run first.
tamale:
- env: STUFF="hot hot"
echo "do you like tamale?"
echo "$STUFF tamale?"
outputgen:
- hidden
- output: "/tmp/produced_file" as "root_result"
echo "ohai" | tee /tmp/produced_file
echo "running on whitespaceOS" (? if job == "whitespaceOS" ?)
cpuinfo: tamale outputgen
echo "we're running on:"
lscpu
great_success: cpuinfo
echo "raus raus raus, die nyan-katze"
echo "now, copy this file in your project and modify it!"