mirror of https://github.com/ARMmbed/mbed-os.git
				
				
				
			Merge pull request #7898 from 0xc0170/fix_astyle_common
Travis: fix astyle report (-/+ files)pull/8364/merge
						commit
						dc4a52c727
					
				| 
						 | 
					@ -132,10 +132,10 @@ matrix:
 | 
				
			||||||
        # update status if we succeeded, compare with master if possible
 | 
					        # update status if we succeeded, compare with master if possible
 | 
				
			||||||
        - |
 | 
					        - |
 | 
				
			||||||
          CURR=$(cat astyle-branch.out | grep Formatted | wc -l)
 | 
					          CURR=$(cat astyle-branch.out | grep Formatted | wc -l)
 | 
				
			||||||
          PREV=$(curl https://api.github.com/repos/$TRAVIS_REPO_SLUG/status/master \
 | 
					          PREV=$(curl -u "$MBED_BOT" https://api.github.com/repos/$TRAVIS_REPO_SLUG/status/master \
 | 
				
			||||||
              | jq -re "select(.sha != \"$TRAVIS_COMMIT\")
 | 
					              | jq -re "select(.sha != \"$TRAVIS_COMMIT\")
 | 
				
			||||||
                  | .statuses[] | select(.context == \"travis-ci/$NAME\").description
 | 
					                  | .statuses[] | select(.context == \"travis-ci/$NAME\").description
 | 
				
			||||||
                  | capture(\", (?<files>[0-9]+) files\").warnings" \
 | 
					                  | capture(\", (?<files>[0-9]+) files\").files" \
 | 
				
			||||||
              || echo 0)
 | 
					              || echo 0)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
          STATUSM="Passed, ${CURR} files"
 | 
					          STATUSM="Passed, ${CURR} files"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue