1+ # Evergreen Project Config
2+
3+ # When a task that used to pass starts to fail
4+ # Go through all versions that may have been skipped to detect
5+ # when the task started failing
6+ stepback : true
7+
8+ # Mark a failure as a system/bootstrap failure (purple box) rather then a task
9+ # failure by default.
10+ # Actual testing tasks are marked with `type: test`
11+ command_type : system
12+
13+ # Protect ourself against rogue test case, or curl gone wild, that runs forever
14+ # 12 minutes is the longest we'll ever run
15+ exec_timeout_secs : 3600 # 12 minutes is the longest we'll ever run
16+
17+ # What to do when evergreen hits the timeout (`post:` tasks are run automatically)
18+ timeout :
19+ - command : shell.exec
20+ params :
21+ script : |
22+ ls -la
23+ functions :
24+ " fetch source " :
25+ - command : git.get_project
26+ params :
27+ directory : docs-ecosystem
28+
29+
30+ " install checker tool " :
31+ - command : shell.exec
32+ type : system
33+ params :
34+ shell : bash
35+ working_dir : docs-ecosystem
36+ script : |
37+ export GOPATH=$(dirname $(dirname $(dirname `pwd`)))
38+ export GOROOT='/opt/golang/go1.16'
39+ export PATH=$GOROOT/bin:$GOPATH/bin/:$PATH
40+ go install github.com/terakilobyte/checker@latest
41+ " run checker " :
42+ - command : shell.exec
43+ type : test
44+ params :
45+ shell : bash
46+ working_dir : docs-ecosystem
47+ script : |
48+ export GOPATH=$(dirname $(dirname $(dirname `pwd`)))
49+ export GOROOT='/opt/golang/go1.16'
50+ export PATH=$GOROOT/bin:$GOPATH/bin/:$PATH
51+ git diff --name-only HEAD master | tr "\n" "," | xargs checker --path . --changes
52+ pre :
53+ - func : " fetch source"
54+ - func : " install checker tool"
55+
56+ tasks :
57+
58+ - name : check
59+ commands :
60+ - func : " run checker"
61+
62+ buildvariants :
63+
64+ - name : ubuntu2004
65+ display_name : Ubuntu 20.04
66+ run_on : [ ubuntu2004-large ]
67+ tasks :
68+ - name : check
0 commit comments