new drone, convert some macros to functions #32
							
								
								
									
										31
									
								
								.drone.yml
									
									
									
									
									
								
							
							
						
						
									
										31
									
								
								.drone.yml
									
									
									
									
									
								
							| @ -3,8 +3,23 @@ kind: pipeline | |||||||
| type: docker | type: docker | ||||||
| name: test libpso | name: test libpso | ||||||
| 
 | 
 | ||||||
|  | concurrency: | ||||||
|  |     limit: 1 | ||||||
|  | 
 | ||||||
|  | environment: | ||||||
|  |   CARGO_INCREMENTAL: false | ||||||
|  | 
 | ||||||
| steps: | steps: | ||||||
| - name: cargo build | - name: clean cache | ||||||
|  |   image: rustlang/rust:nightly | ||||||
|  |   volumes: | ||||||
|  |   - name: cache | ||||||
|  |     path: /usr/local/cargo | ||||||
|  |   - name: target-cache | ||||||
|  |     path: /drone/src/target | ||||||
|  |   commands: | ||||||
|  |   - cargo prune | ||||||
|  | - name: build | ||||||
|   image: rustlang/rust:nightly |   image: rustlang/rust:nightly | ||||||
|   volumes: |   volumes: | ||||||
|   - name: cache |   - name: cache | ||||||
| @ -13,7 +28,7 @@ steps: | |||||||
|     path: /drone/src/target |     path: /drone/src/target | ||||||
|   commands: |   commands: | ||||||
|   - cargo build |   - cargo build | ||||||
| - name: cargo test | - name: clippy! | ||||||
|   image: rustlang/rust:nightly |   image: rustlang/rust:nightly | ||||||
|   volumes: |   volumes: | ||||||
|   - name: cache |   - name: cache | ||||||
| @ -21,7 +36,16 @@ steps: | |||||||
|   - name: target-cache |   - name: target-cache | ||||||
|     path: /drone/src/target |     path: /drone/src/target | ||||||
|   commands: |   commands: | ||||||
|   - cargo test |   - cargo clippy -- --deny warnings | ||||||
|  | - name: test | ||||||
|  |   image: rustlang/rust:nightly | ||||||
|  |   volumes: | ||||||
|  |   - name: cache | ||||||
|  |     path: /usr/local/cargo | ||||||
|  |   - name: target-cache | ||||||
|  |     path: /drone/src/target | ||||||
|  |   commands: | ||||||
|  |   - cargo test --jobs 1 | ||||||
| 
 | 
 | ||||||
| volumes: | volumes: | ||||||
| - name: cache | - name: cache | ||||||
| @ -30,4 +54,3 @@ volumes: | |||||||
| - name: target-cache | - name: target-cache | ||||||
|   host: |   host: | ||||||
|     path: /home/drone/cargo-cache |     path: /home/drone/cargo-cache | ||||||
| 
 |  | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user