git-subtree-dir: ruma-identifiers git-subtree-mainline: 19ce9645b6651e4de42ddf9e81ee50e19c8c0f26 git-subtree-split: c0a1d8bd440c7cde0fa4ab5e22898ddb26bb706d
		
			
				
	
	
		
			33 lines
		
	
	
		
			974 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
		
			974 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
| image: archlinux
 | |
| packages:
 | |
|   - rustup
 | |
| sources:
 | |
|   - https://github.com/ruma/ruma-identifiers
 | |
| tasks:
 | |
|   - rustup: |
 | |
|       # We specify --profile minimal because we'd otherwise download docs
 | |
|       rustup toolchain install stable --profile minimal -c rustfmt -c clippy
 | |
|       rustup default stable
 | |
|   - test: |
 | |
|       cd ruma-identifiers
 | |
| 
 | |
|       # We don't want the build to stop on individual failure of independent
 | |
|       # tools, so capture tool exit codes and set the task exit code manually
 | |
|       set +e
 | |
| 
 | |
|       cargo fmt -- --check
 | |
|       fmt_exit=$?
 | |
| 
 | |
|       cargo clippy --all-targets --all-features -- -D warnings
 | |
|       clippy_exit=$?
 | |
| 
 | |
|       cargo test --no-default-features --verbose
 | |
|       test1_exit=$?
 | |
| 
 | |
|       cargo test --all-features --verbose
 | |
|       test2_exit=$?
 | |
| 
 | |
|       exit $(( $fmt_exit || $clippy_exit || $test1_exit || $test2_exit ))
 | |
|   # TODO: Add audit task once cargo-audit binary releases are available.
 | |
|   #       See https://github.com/RustSec/cargo-audit/issues/66
 |