forked from evergreen-ci/sample
-
Notifications
You must be signed in to change notification settings - Fork 0
/
evergreen.yml
114 lines (104 loc) · 2.25 KB
/
evergreen.yml
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
functions:
"fetch source" :
- command: git.get_project
params:
directory: src
- command: shell.exec
params:
working_dir: src
script: |
echo "this is a 2nd command in the function!"
ls
"debug":
command: shell.exec
params:
script: |
echo "i am a debug function."
"run a task that fails" :
command: shell.exec
params:
working_dir: src
script: |
echo "this is a function with only a single command to run!"
./run.py results fail
"run a task that passes" :
command: shell.exec
params:
working_dir: src
script: |
./run.py results pass
"run a function with an arg":
command: shell.exec
params:
working_dir: src
script: |
echo "I was called with ${foobar}"
pre:
command: shell.exec
params:
script: |
rm -rf src || true
echo "pre-task run. JUST ONE COMMAND"
post:
- command: shell.exec
params:
script: |
echo "post-task run."
true
- command: attach.results
params:
file_location: src/results.json
tasks:
- name: compile
depends_on: []
commands:
- func: "fetch source"
- func: "run a task that passes"
- func: "run a function with an arg"
vars:
foobar: "TESTING: ONE"
- func: "run a function with an arg"
vars:
foobar: "TESTING: TWO"
- name: passing_test
depends_on:
- name: compile
commands:
- func: "fetch source"
- func: "run a task that passes"
- name: failing_test
depends_on:
- name: compile
commands:
- func: "fetch source"
- func: "run a task that fails"
- name: timeout_test
depends_on:
- name: compile
commands:
- func: "fetch source"
- command: shell.exec
timeout_secs: 20
params:
working_dir: src
script: |
echo "this is going to timeout"
./run.py timeout
modules:
- name: render-module
repo: [email protected]:evergreen-ci/render.git
prefix: modules
branch: master
buildvariants:
- name: osx-108
display_name: OSX
modules: ~
run_on:
- localtestdistro
expansions:
test_flags: "blah blah"
tasks:
- name: compile
- name: passing_test
- name: failing_test
- name: timeout_test