commit
						49192deec8
					
				| @ -0,0 +1,51 @@ | ||||
| pull_request_rules: | ||||
| 
 | ||||
|   - name: Build testing images; trigger bors try | ||||
|     conditions: | ||||
|       - -title~=(WIP|wip) | ||||
|       - -label~=^(status/wip|status/blocked)$ | ||||
|     actions: | ||||
|       comment: | ||||
|         message: | | ||||
|           Thanks for submitting this pull request. | ||||
|           Bors-ng will now build test images. When it succeeds, we will continue to review and test your PR. | ||||
|            | ||||
|           bors try | ||||
|            | ||||
|           Note: if this build fails, [read this](http://mailu.io/master/contributors/environment.html#when-bors-try-fails). | ||||
| 
 | ||||
|   - name: 2 approved reviews; trigger bors r+ | ||||
|     conditions: | ||||
|       - -title~=(WIP|wip) | ||||
|       - -label~=^(status/wip|status/blocked)$ | ||||
|       - "#approved-reviews-by>=2" | ||||
|     actions: | ||||
|       comment: | ||||
|         message: bors r+ | ||||
| 
 | ||||
|   - name: Trusted author and 1 approved review; trigger bors r+ | ||||
|     conditions: | ||||
|       - author~=^(kaiyou|muhlemmer|mildred|HorayNarea|adi90x|hoellen|ofthesun9|Nebukadneza|ionutfilip)$ | ||||
|       - -title~=(WIP|wip) | ||||
|       - -label~=^(status/wip|status/blocked|review/need2)$ | ||||
|       - "#approved-reviews-by>=1" | ||||
|     actions: | ||||
|       comment: | ||||
|         message: bors r+ | ||||
| 
 | ||||
|   - name: Backport to 1.6 branch | ||||
|     conditions: | ||||
|       - base=master | ||||
|       - label=type/backport | ||||
|     actions: | ||||
|       backport: | ||||
|         branches: | ||||
|           - '1.6' | ||||
| 
 | ||||
|   - name: remove outdated reviews | ||||
|     conditions: | ||||
|       - base~=^(master|1.6)$ | ||||
|     actions: | ||||
|       dismiss_reviews: | ||||
|         approved: True | ||||
| 
 | ||||
| @ -0,0 +1,3 @@ | ||||
| status = [ | ||||
|   "continuous-integration/travis-ci/push" | ||||
| ] | ||||
| @ -1,4 +1,16 @@ | ||||
| #!/bin/bash | ||||
| 
 | ||||
| # Skip deploy for staging branch | ||||
| [ "$TRAVIS_BRANCH" = "staging" ] && exit 0 | ||||
| 
 | ||||
| # Retag in case of `bors try` | ||||
| if [ "$TRAVIS_BRANCH" = "testing" ]; then | ||||
|     export DOCKER_ORG="mailutest" | ||||
|     # Commit message is like "Try #99". | ||||
|     # This sets the version tag to "pr-99" | ||||
|     export MAILU_VERSION="pr-${TRAVIS_COMMIT_MESSAGE//[!0-9]/}" | ||||
|     docker-compose -f tests/build.yml build | ||||
| fi | ||||
| 
 | ||||
| docker login -u $DOCKER_UN -p $DOCKER_PW | ||||
| docker-compose -f tests/build.yml push | ||||
|  | ||||
					Loading…
					
					
				
		Reference in New Issue
	
	 Tim Möhlmann
						Tim Möhlmann