commit
						00f85a0324
					
				
							
								
								
									
										42
									
								
								.gitlab-ci.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										42
									
								
								.gitlab-ci.yml
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,42 @@ | ||||
| #Adapted from https://users.rust-lang.org/t/my-gitlab-config-docs-tests/16396 | ||||
| 
 | ||||
| image: 'sigp/lighthouse:latest' | ||||
| 
 | ||||
| stages: | ||||
|   - test | ||||
|   - doc | ||||
| 
 | ||||
| variables: | ||||
|     CARGO_HOME: /cache/cargocache | ||||
| 
 | ||||
| check-fmt: | ||||
|   stage: test | ||||
|   script: | ||||
|     - cargo build --manifest-path protos/Cargo.toml | ||||
|     - cargo fmt --all -- --check | ||||
| 
 | ||||
| test-dev: | ||||
|   stage: test | ||||
|   script: | ||||
|     - cargo test --verbose --all | ||||
| 
 | ||||
| test-release: | ||||
|   stage: test | ||||
|   script: | ||||
|     - cargo test --verbose --all --release | ||||
| 
 | ||||
| pages: | ||||
|   stage: doc | ||||
|   script: | ||||
|     - cargo doc --no-deps | ||||
|     - mv target/doc public | ||||
|       #    - echo '<meta http-equiv="refresh" content="0; url={{ LIBRARY NAME }}">' > public/index.html | ||||
|   artifacts: | ||||
|     paths: | ||||
|       - public | ||||
|   only: | ||||
|     - master | ||||
| 
 | ||||
| cache: | ||||
|   paths: | ||||
|     - target/ | ||||
| @ -14,8 +14,8 @@ RUN git clone https://github.com/google/protobuf.git && \ | ||||
|     rm -r protobuf | ||||
| 
 | ||||
| 
 | ||||
| RUN mkdir /cargocache && chmod -R ugo+rwX /cargocache | ||||
| RUN mkdir -p /cache/cargocache && chmod -R ugo+rwX /cache/cargocache | ||||
| 
 | ||||
| ENV CARGO_HOME /cargocache | ||||
| ENV CARGO_HOME /cache/cargocache | ||||
| 
 | ||||
| RUN rustup component add rustfmt clippy | ||||
|  | ||||
							
								
								
									
										2
									
								
								Jenkinsfile
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								Jenkinsfile
									
									
									
									
										vendored
									
									
								
							| @ -2,7 +2,7 @@ pipeline { | ||||
| 	agent { | ||||
| 		dockerfile { | ||||
| 			filename 'Dockerfile' | ||||
| 			args '-v cargo-cache:/cargocache:rw -e "CARGO_HOME=/cargocache"' | ||||
| 			args '-v cargo-cache:/cache/cargocache:rw -e "CARGO_HOME=/cache/cargocache"' | ||||
| 		} | ||||
| 	} | ||||
| 	stages { | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user