github.com/zaquestion/lab@v0.25.1/testdata/.gitlab-ci.yml (about) 1 image: busybox:latest 2 3 before_script: 4 - echo "Before script section" 5 - echo "For example you might run an update here or install a build dependency" 6 - echo "Or perhaps you might print out some debugging details" 7 8 after_script: 9 - echo "After script section" 10 - echo "For example you might do some cleanup here" 11 12 build1: 13 stage: build 14 script: 15 - echo "Do your build here" 16 17 build2: 18 stage: build 19 script: 20 - echo "Do your build here" 21 - sleep 10 22 - echo "1 sleep" 23 - sleep 10 24 - echo "2 sleep" 25 - sleep 10 26 - echo "3 sleep" 27 - sleep 10 28 29 build2:fails: 30 stage: build 31 script: 32 - echo "Do your build here" 33 - sleep 5 34 - exit 1 35 allow_failure: true 36 37 test1: 38 stage: test 39 script: 40 - echo "Do a test here" 41 - echo "For example run a test suite" 42 43 test2: 44 stage: test 45 script: 46 - echo "Do another parallel test here" 47 - echo "For example run a lint test" 48 - sleep 10 49 50 test2:really_a_long_name_for: 51 stage: test 52 script: 53 - echo "Do another parallel test here" 54 - echo "For example run a lint test" 55 - sleep 60 56 57 test2:no_suffix:test: 58 stage: test 59 script: 60 - echo "Do another parallel test here" 61 - echo "For example run a lint test" 62 - sleep 60 63 64 test3: 65 stage: test 66 script: 67 - echo "Do yet another parallel test here" 68 69 deploy1: 70 stage: deploy 71 script: 72 - echo "Do your deploy here" 73 - sleep 60 74 75 deploy2: 76 stage: deploy 77 script: 78 - echo "Do a manual deploy here" 79 when: manual 80 81 deploy3:no_sufix:deploy: 82 stage: deploy 83 script: 84 - echo "Do a manual deploy here" 85 - sleep 15 86 87 deploy4: 88 stage: deploy 89 script: 90 - echo "Do a manual deploy here" 91 - sleep 25 92 93 deploy5:really_a_long_name_for: 94 stage: deploy 95 script: 96 - echo "Do a manual deploy here" 97 - sleep 3 98 99 deploy5: 100 stage: deploy 101 script: 102 - echo "Do a manual deploy here" 103 - sleep 8 104 105 deploy6: 106 stage: deploy 107 script: 108 - echo "Do a manual deploy here" 109 - sleep 6 110 111 deploy7: 112 stage: deploy 113 script: 114 - echo "Do a manual deploy here" 115 - sleep 5 116 117 deploy8: 118 stage: deploy 119 script: 120 - echo "Do a manual deploy here" 121 - sleep 4 122 123 deploy9: 124 stage: deploy 125 script: 126 - echo "Do a manual deploy here" 127 - sleep 5 128 129 deploy10: 130 stage: deploy 131 script: 132 - echo "Do a manual deploy here" 133 - sleep 4 134 135 deploy5: 136 stage: deploy 137 script: 138 - echo "Do a manual deploy here" 139 - sleep 2