travis: Don't run clippy on old rustc
This commit is contained in:
		
							parent
							
								
									cb4bddf60a
								
							
						
					
					
						commit
						398e0a73d1
					
				
							
								
								
									
										10
									
								
								.travis.yml
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								.travis.yml
									
									
									
									
									
								
							| @ -12,7 +12,10 @@ jobs: | |||||||
| 
 | 
 | ||||||
| before_script: | before_script: | ||||||
|   - rustup component add rustfmt |   - rustup component add rustfmt | ||||||
|   - rustup component add clippy |   - | | ||||||
|  |       if [ "$TRAVIS_RUST_VERSION" != "1.34.2" ]; then | ||||||
|  |         rustup component add clippy | ||||||
|  |       fi | ||||||
|   - | |   - | | ||||||
|       if [ "$TRAVIS_RUST_VERSION" == "stable" ]; then |       if [ "$TRAVIS_RUST_VERSION" == "stable" ]; then | ||||||
|         cargo install --force cargo-audit |         cargo install --force cargo-audit | ||||||
| @ -24,7 +27,10 @@ script: | |||||||
|         cargo audit |         cargo audit | ||||||
|       fi |       fi | ||||||
|   - cargo fmt --all -- --check |   - cargo fmt --all -- --check | ||||||
|   - cargo clippy --all --all-targets --all-features -- -D warnings |   - | | ||||||
|  |       if [ "$TRAVIS_RUST_VERSION" != "1.34.2" ]; then | ||||||
|  |         cargo clippy --all --all-targets --all-features -- -D warnings | ||||||
|  |       fi | ||||||
|   - cargo build --all --verbose |   - cargo build --all --verbose | ||||||
|   - cargo test --all --verbose |   - cargo test --all --verbose | ||||||
| if: "type != push OR (tag IS blank AND branch = master)" | if: "type != push OR (tag IS blank AND branch = master)" | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user