Separate drone steps and add clippy
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is passing
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	continuous-integration/drone/push Build is passing
				
			This commit is contained in:
		
							parent
							
								
									e75a326f7d
								
							
						
					
					
						commit
						2d0927cff2
					
				
							
								
								
									
										22
									
								
								.drone.yml
									
									
									
									
									
								
							
							
						
						
									
										22
									
								
								.drone.yml
									
									
									
									
									
								
							@ -13,14 +13,32 @@ steps:
 | 
				
			|||||||
    mount:
 | 
					    mount:
 | 
				
			||||||
      - ./target
 | 
					      - ./target
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- name: build
 | 
				
			||||||
 | 
					  image: rust:1
 | 
				
			||||||
 | 
					  volumes:
 | 
				
			||||||
 | 
					  - name: cargo-registry
 | 
				
			||||||
 | 
					    path: /usr/local/cargo/registry
 | 
				
			||||||
 | 
					  commands:
 | 
				
			||||||
 | 
					  - cargo build --verbose
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: test
 | 
					- name: test
 | 
				
			||||||
  image: rust:1
 | 
					  image: rust:1
 | 
				
			||||||
  volumes:
 | 
					  volumes:
 | 
				
			||||||
  - name: cargo-registry
 | 
					  - name: cargo-registry
 | 
				
			||||||
    path: /usr/local/cargo/registry
 | 
					    path: /usr/local/cargo/registry
 | 
				
			||||||
  commands:
 | 
					  commands:
 | 
				
			||||||
  - cargo build --verbose --all
 | 
					  - cargo test --verbose
 | 
				
			||||||
  - cargo test --verbose --all
 | 
					
 | 
				
			||||||
 | 
					- name: clippy
 | 
				
			||||||
 | 
					  image: rust:1
 | 
				
			||||||
 | 
					  failure: ignore
 | 
				
			||||||
 | 
					  volumes:
 | 
				
			||||||
 | 
					  - name: cargo-registry
 | 
				
			||||||
 | 
					    path: /usr/local/cargo/registry
 | 
				
			||||||
 | 
					  commands:
 | 
				
			||||||
 | 
					  - rustup component add clippy
 | 
				
			||||||
 | 
					  - cargo clean -p sprinklers_rs
 | 
				
			||||||
 | 
					  - cargo clippy --all-targets --all-features -- -D warnings
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: rebuild-target-cache
 | 
					- name: rebuild-target-cache
 | 
				
			||||||
  image: drillster/drone-volume-cache
 | 
					  image: drillster/drone-volume-cache
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user