github.com/billybanfield/evergreen@v0.0.0-20170525200750-eeee692790f7/config_dev/project/sample.yml (about) 1 owner: mpobrien 2 repo: sample 3 branch: master 4 repokind: github 5 enabled: true 6 batchtime: 120 7 identifier: sample 8 9 functions: 10 "fetch source" : 11 - command: git.get_project 12 params: 13 directory: src 14 - command: shell.exec 15 params: 16 working_dir: src 17 script: | 18 echo "this is a 2nd command in the function!" 19 ls 20 "debug": 21 command: shell.exec 22 params: 23 script: | 24 echo "i am a debug function." 25 "run a task that fails" : 26 command: shell.exec 27 params: 28 working_dir: src 29 script: | 30 echo "this is a function with only a single command to run!" 31 ./run.py results fail 32 33 "run a task that passes" : 34 command: shell.exec 35 params: 36 working_dir: src 37 script: | 38 ./run.py results pass 39 40 "run a function with an arg": 41 command: shell.exec 42 params: 43 working_dir: src 44 script: | 45 echo "I was called with ${foobar}" 46 47 pre: 48 command: shell.exec 49 params: 50 script: | 51 rm -rf src || true 52 echo "pre-task run. JUST ONE COMMAND" 53 54 post: 55 - command: shell.exec 56 params: 57 script: | 58 echo "post-task run." 59 true 60 - command: attach.results 61 params: 62 file_location: src/results.json 63 64 tasks: 65 - name: compile 66 depends_on: [] 67 commands: 68 - func: "fetch source" 69 - func: "run a task that passes" 70 - func: "run a function with an arg" 71 vars: 72 foobar: "TESTING: ONE" 73 - func: "run a function with an arg" 74 vars: 75 foobar: "TESTING: TWO" 76 77 - name: passing_test 78 depends_on: 79 - name: compile 80 commands: 81 - func: "fetch source" 82 - func: "run a task that passes" 83 84 - name: failing_test 85 depends_on: 86 - name: compile 87 commands: 88 - func: "fetch source" 89 - func: "run a task that fails" 90 91 - name: timeout_test 92 depends_on: 93 - name: compile 94 commands: 95 - func: "fetch source" 96 - command: shell.exec 97 timeout_secs: 20 98 params: 99 working_dir: src 100 script: | 101 echo "this is going to timeout" 102 ./run.py timeout 103 104 105 buildvariants: 106 - name: osx-108 107 display_name: OSX 108 modules: ~ 109 run_on: 110 - localtestdistro 111 expansions: 112 test_flags: "blah blah" 113 tasks: 114 - name: compile 115 - name: passing_test 116 - name: failing_test 117 - name: timeout_test 118 - name: ubuntu 119 display_name: Ubuntu 120 modules: ~ 121 run_on: 122 - ubuntu1404-test 123 expansions: 124 test_flags: "blah blah" 125 tasks: 126 - name: compile 127 - name: passing_test 128 - name: failing_test 129 - name: timeout_test