Migrate circle-ci v1 to v2
This commit is contained in:
		
							
								
								
									
										21
									
								
								.circleci/config.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								.circleci/config.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,21 @@
 | 
				
			|||||||
 | 
					version: 2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					jobs:
 | 
				
			||||||
 | 
					  build:
 | 
				
			||||||
 | 
					    docker:
 | 
				
			||||||
 | 
					      # Primary container
 | 
				
			||||||
 | 
					      - image: thomasweise/texlive
 | 
				
			||||||
 | 
					    steps:
 | 
				
			||||||
 | 
					      - checkout
 | 
				
			||||||
 | 
					      - run:
 | 
				
			||||||
 | 
					          name: Compile
 | 
				
			||||||
 | 
					          command: make
 | 
				
			||||||
 | 
					      - run:
 | 
				
			||||||
 | 
					          name: Move artifacts
 | 
				
			||||||
 | 
					          command: |
 | 
				
			||||||
 | 
					            mkdir -p ~/results
 | 
				
			||||||
 | 
					            mv examples/cv.pdf ~/results
 | 
				
			||||||
 | 
					            mv examples/resume.pdf ~/results
 | 
				
			||||||
 | 
					            mv examples/coverletter.pdf ~/results
 | 
				
			||||||
 | 
					      - store_artifacts:
 | 
				
			||||||
 | 
					          path: ~/results
 | 
				
			||||||
							
								
								
									
										14
									
								
								circle.yml
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								circle.yml
									
									
									
									
									
								
							@@ -1,14 +0,0 @@
 | 
				
			|||||||
## Customize the test machine
 | 
					 | 
				
			||||||
machine:
 | 
					 | 
				
			||||||
  timezone:
 | 
					 | 
				
			||||||
    Asia/Seoul
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  services:
 | 
					 | 
				
			||||||
    - docker
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Customize compile commands
 | 
					 | 
				
			||||||
test:
 | 
					 | 
				
			||||||
  override:
 | 
					 | 
				
			||||||
    - docker run --rm -w "/doc" -v "$PWD":/doc thomasweise/texlive make
 | 
					 | 
				
			||||||
  post:
 | 
					 | 
				
			||||||
    - mv examples/*.pdf $CIRCLE_ARTIFACTS/
 | 
					 | 
				
			||||||
		Reference in New Issue
	
	Block a user