mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	This was causing a bunch of spurious failures. Workaround for https://github.com/travis-ci/travis-ci/issues/4596 ; TRAVIS_COMMIT_RANGE is actually just totally wrong for this purpose.
		
			
				
	
	
		
			16 lines
		
	
	
		
			388 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			388 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/bin/bash
 | 
						|
 | 
						|
# Lint all commit messages that are newer than upstream/master if running
 | 
						|
# locally or the commits in the push or PR if in TravisCI.
 | 
						|
 | 
						|
# The rules can be found in /.gitlint
 | 
						|
 | 
						|
if [ "$TRAVIS" ]; then
 | 
						|
    # Work around https://github.com/travis-ci/travis-ci/issues/4596
 | 
						|
    range="${TRAVIS_COMMIT_RANGE/.../..}"
 | 
						|
else
 | 
						|
    range="upstream/master..HEAD"
 | 
						|
fi
 | 
						|
 | 
						|
gitlint --commits $range
 |