-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathneph.yaml
79 lines (71 loc) · 1.58 KB
/
neph.yaml
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# You can import jobs from other configuration file
import:
sample/outside_configuration.yaml
main:
commands:
- echo "This is a Main job"
- echo "Main job depends on sub_job"
- sleep 0.2
depends_on:
sub_job
sub_job:
before:
- echo "This is before what I do"
- sleep 1
after:
- echo "This is after what I do"
- sleep 1
commands:
- echo "This is a sub job for main job"
- echo "You can define multiple dependencies like this"
- sleep 0.2
depends_on:
- sub_sub_job0
- sub_sub_job1
sub_sub_job0:
commands:
- echo "Working on ./sample directory"
- pwd
- echo "Check the 'pwd' result at .neph/sub_sub_job0/log/log.out"
- sleep 0.2
dir:
sample
depends_on:
- hide_command
sub_sub_job1:
commands:
- echo "This job raises an error since 'hoge' command doesn't exist"
- echo "But job will proceed since the error will be ignored"
- sleep 0.2
- hoge
ignore_error:
true
depends_on:
- specify_sources
- print_result
specify_sources:
commands:
- echo "This job will not be triggered if the sources are not updated"
- echo "The feature is inspired by make command"
- echo "'outside_job' is defined at sample/outside_configuration.yaml"
- sleep 0.2
src:
- src/**/*.cr
depends_on:
outside_job
print_result:
commands:
- echo "The result is $RESULT"
depends_on:
-
job: crystal_eval_job
env: RESULT
hide_command:
commands:
- sleep 1
- echo "Can you see me?"
hide:
true
crystal_eval_job:
commands:
- crystal eval 'print 1 + 5'