Add .gitlab-ci.yml
This commit is contained in:
		
							
								
								
									
										17
									
								
								.gitlab-ci.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								.gitlab-ci.yml
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,17 @@
 | 
				
			|||||||
 | 
					# Official language image. Look for the different tagged releases at:
 | 
				
			||||||
 | 
					# https://hub.docker.com/r/library/rust/tags/
 | 
				
			||||||
 | 
					image: "rust:latest"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Install a C compiler, cmake and git into the container.
 | 
				
			||||||
 | 
					before_script:
 | 
				
			||||||
 | 
					- apt-get update -yqq
 | 
				
			||||||
 | 
					- apt-get install -yqq --no-install-recommends build-essential
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Use cargo to test the project
 | 
				
			||||||
 | 
					build:cargo:
 | 
				
			||||||
 | 
					  script:
 | 
				
			||||||
 | 
					  - rustc --version && cargo --version      # Print version info for debugging
 | 
				
			||||||
 | 
					  - cargo build --release
 | 
				
			||||||
 | 
					  artifacts:
 | 
				
			||||||
 | 
					    paths:
 | 
				
			||||||
 | 
					      - "target/release/peshming"
 | 
				
			||||||
		Reference in New Issue
	
	Block a user