Merge pull request #10 from klardotsh/topic-integrate-circle
Basic CircleCI setup: Lint the codebase on all inbound PRs
This commit is contained in:
		
							
								
								
									
										35
									
								
								.circleci/config.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										35
									
								
								.circleci/config.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,35 @@
 | 
			
		||||
version: 2
 | 
			
		||||
jobs:
 | 
			
		||||
  lint:
 | 
			
		||||
    docker:
 | 
			
		||||
      - image: 'python:3.7'
 | 
			
		||||
 | 
			
		||||
    environment:
 | 
			
		||||
        KMK_TEST: 1
 | 
			
		||||
        PIPENV_VENV_IN_PROJECT: 1
 | 
			
		||||
 | 
			
		||||
    steps:
 | 
			
		||||
      - checkout
 | 
			
		||||
      - restore_cache:
 | 
			
		||||
          keys:
 | 
			
		||||
            - v1-kmk-lint-{{ checksum "Pipfile.lock" }}
 | 
			
		||||
 | 
			
		||||
      - run: pip install pipenv==2018.7.1
 | 
			
		||||
      - run: pipenv install --dev
 | 
			
		||||
      - run: pipenv run flake8
 | 
			
		||||
 | 
			
		||||
      - save_cache:
 | 
			
		||||
          key: v1-kmk-lint-{{ checksum "Pipfile.lock" }}
 | 
			
		||||
          paths:
 | 
			
		||||
            - .venv
 | 
			
		||||
 | 
			
		||||
workflows:
 | 
			
		||||
  version: 2
 | 
			
		||||
  build-deploy:
 | 
			
		||||
    jobs:
 | 
			
		||||
      - lint:
 | 
			
		||||
          filters:
 | 
			
		||||
            branches:
 | 
			
		||||
              only: /.*/
 | 
			
		||||
            tags:
 | 
			
		||||
              only: /.*/
 | 
			
		||||
		Reference in New Issue
	
	Block a user