Previously, polylint_test.sh used the local copies of bower components that the PolyGerrit project has in its repo to do local development for testing. This was causing an issue, as these were not found on the CI system. This makes the test take longer, but makes it standalone enough to function on CI. Change-Id: I21f3ed67ade1af352b2ccf21db6644b2bd1d2fee
		
			
				
	
	
		
			21 lines
		
	
	
		
			461 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			461 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/bin/sh
 | 
						|
 | 
						|
set -ex
 | 
						|
 | 
						|
npm_bin=$(which npm)
 | 
						|
if [[ -z "$npm_bin" ]]; then
 | 
						|
    echo "NPM must be on the path."
 | 
						|
    exit 1
 | 
						|
fi
 | 
						|
 | 
						|
polylint_bin=$(which polylint)
 | 
						|
if [[ -z "$polylint_bin" ]]; then
 | 
						|
    echo "You must install polylint and its dependencies from NPM."
 | 
						|
    echo "> npm install -g polylint"
 | 
						|
    exit 1
 | 
						|
fi
 | 
						|
 | 
						|
unzip polygerrit-ui/polygerrit_components.bower_components.zip -d polygerrit-ui/app
 | 
						|
 | 
						|
${polylint_bin} --root polygerrit-ui/app --input elements/gr-app.html
 |