All checks were successful
		
		
	
	continuous-integration/drone/push Build is passing
				
			
		
			
				
	
	
		
			59 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			59 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
| kind: pipeline
 | |
| type: docker
 | |
| name: default
 | |
| 
 | |
| steps:
 | |
| - name: restore-target-cache
 | |
|   image: drillster/drone-volume-cache
 | |
|   volumes:
 | |
|   - name: target-cache
 | |
|     path: /cache
 | |
|   settings:
 | |
|     restore: true
 | |
|     mount:
 | |
|       - ./target
 | |
| 
 | |
| - name: build
 | |
|   image: rust:1
 | |
|   volumes:
 | |
|   - name: cargo-registry
 | |
|     path: /usr/local/cargo/registry
 | |
|   commands:
 | |
|   - cargo build --verbose
 | |
| 
 | |
| - name: test
 | |
|   image: rust:1
 | |
|   volumes:
 | |
|   - name: cargo-registry
 | |
|     path: /usr/local/cargo/registry
 | |
|   commands:
 | |
|   - cargo test --verbose
 | |
| 
 | |
| - 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
 | |
|   image: drillster/drone-volume-cache
 | |
|   volumes:
 | |
|   - name: target-cache
 | |
|     path: /cache
 | |
|   settings:
 | |
|     rebuild: true
 | |
|     mount:
 | |
|       - ./target
 | |
| 
 | |
| volumes:
 | |
| - name: cargo-registry
 | |
|   host:
 | |
|     path: /var/lib/drone/sprinklers_rs/cargo-registry
 | |
| - name: target-cache
 | |
|   host:
 | |
|     path: /var/lib/drone/sprinklers_rs/target-cache |