testing... #3
					 1 changed files with 6 additions and 4 deletions
				
			
		
							
								
								
									
										10
									
								
								.drone.yml
									
										
									
									
									
								
							
							
						
						
									
										10
									
								
								.drone.yml
									
										
									
									
									
								
							| 
						 | 
					@ -17,21 +17,23 @@ steps:
 | 
				
			||||||
    - |
 | 
					    - |
 | 
				
			||||||
      set -e
 | 
					      set -e
 | 
				
			||||||
      clang-format --version
 | 
					      clang-format --version
 | 
				
			||||||
      has_fomatting_issues=0
 | 
					      HAS_ISSUES=0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      for file in $(find ./modules -name '*.?pp'); do
 | 
					      for file in $(find ./modules -name '*.?pp'); do
 | 
				
			||||||
        echo "Checking format for $file"
 | 
					        echo "Checking format for $file"
 | 
				
			||||||
        if ! clang-format --dry-run --Werror "$file"; then
 | 
					        if ! clang-format --dry-run --Werror "$file"; then
 | 
				
			||||||
          echo "❌ Formatting issue detected in $file"
 | 
					          echo "❌ Formatting issue detected in $file"
 | 
				
			||||||
          has_fomatting_issues=1
 | 
					          HAS_ISSUES=1
 | 
				
			||||||
        fi
 | 
					        fi
 | 
				
			||||||
      done
 | 
					      done
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      if [ "$has_fomatting_issues" -eq 0 ]; then
 | 
					      if [ "$HAS_ISSUES" -eq 0 ]; then
 | 
				
			||||||
        echo "✅ All files are properly formatted! Well done! ^~^"
 | 
					        echo "✅ All files are properly formatted! Well done! ^~^"
 | 
				
			||||||
 | 
					      else
 | 
				
			||||||
 | 
					      echo "❌ Senpai! There was some formatting issues :c"
 | 
				
			||||||
      fi
 | 
					      fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      exit ${has_fomatting_issues}
 | 
					      exit $HAS_ISSUES
 | 
				
			||||||
---
 | 
					---
 | 
				
			||||||
 | 
					
 | 
				
			||||||
kind: pipeline
 | 
					kind: pipeline
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue