mirror of
				https://github.com/flame-engine/flame.git
				synced 2025-11-04 04:47:13 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			41 lines
		
	
	
		
			715 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			41 lines
		
	
	
		
			715 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/bin/bash -xe
 | 
						|
 | 
						|
if [[ $(flutter format -n .) ]]; then
 | 
						|
    echo "flutter format issue"
 | 
						|
    exit 1
 | 
						|
fi
 | 
						|
 | 
						|
flutter pub get
 | 
						|
result=`dartanalyzer lib/`
 | 
						|
if ! echo "$result" | grep -q "No issues found!"; then
 | 
						|
  echo "$result"
 | 
						|
  echo "dartanalyzer issue: lib"
 | 
						|
  exit 1
 | 
						|
fi
 | 
						|
 | 
						|
cd example/
 | 
						|
flutter pub get
 | 
						|
result=`dartanalyzer .`
 | 
						|
if ! echo "$result" | grep -q "No issues found!"; then
 | 
						|
  echo "$result"
 | 
						|
  echo "dartanalyzer issue: example"
 | 
						|
  exit 1
 | 
						|
fi
 | 
						|
cd ..
 | 
						|
 | 
						|
for f in doc/examples/**/pubspec.yaml; do
 | 
						|
  d=`dirname $f`
 | 
						|
  cd $d
 | 
						|
  flutter pub get
 | 
						|
  result=`dartanalyzer .`
 | 
						|
  if ! echo "$result" | grep -q "No issues found!"; then
 | 
						|
    echo "$result"
 | 
						|
    echo "dartanalyzer issue: $d"
 | 
						|
    exit 1
 | 
						|
  fi
 | 
						|
  cd -
 | 
						|
done
 | 
						|
 | 
						|
echo "success"
 | 
						|
exit 0
 |