mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-31 02:03:20 -04:00 
			
		
		
		
	This is indeed (as Chris said) too spammy; disable the ping back of the results for now - and rethink it a bit. See #2109 Signed-off-by: Miek Gieben <miek@miek.nl>
		
			
				
	
	
		
			20 lines
		
	
	
		
			789 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			789 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
| #!/usr/bin/env bash
 | |
| 
 | |
| set -e +o pipefail
 | |
| 
 | |
| # bit too spammy
 | |
| return
 | |
| 
 | |
| if [ "$TRAVIS_PULL_REQUEST" != "false" ] ; then
 | |
|     echo -e "NOTE: The CPU benchmarks are performed on Travis VMs and vary widly between runs," > .benchmark.body
 | |
|     echo -e " you can't trust them. The memory benchmarks are OK\n\n" >> .benchmark.body
 | |
|     awk '/^benchmark.*old/ { printf "%s\n%s\n", "```", $0 };
 | |
|          /^$/ { print "```" };
 | |
|          /^Bench/ { print $0 };
 | |
|          END{ print "```" }' .benchmark.log >> .benchmark.body
 | |
|     jq -n --arg body "$(cat .benchmark.body)" '{body: $body}' > .benchmark.json
 | |
|     curl -H "Authorization: token ${GITHUB_TOKEN}" -X POST \
 | |
|         --data-binary "@.benchmark.json" \
 | |
|         "https://api.github.com/repos/${TRAVIS_REPO_SLUG}/issues/${TRAVIS_PULL_REQUEST}/comments"
 | |
| fi
 |