mirror of
				https://github.com/mastermindzh/rickvanlieshout.com
				synced 2025-11-04 02:29:46 +01:00 
			
		
		
		
	Update circleci config
This commit is contained in:
		@@ -1,35 +1,82 @@
 | 
				
			|||||||
version: 2
 | 
					version: 2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
jobs:
 | 
					defaults: &defaults
 | 
				
			||||||
  test:
 | 
					 | 
				
			||||||
    working_directory: ~/gatsby-starter-lumen
 | 
					 | 
				
			||||||
  docker:
 | 
					  docker:
 | 
				
			||||||
    - image: circleci/node:8.9.1
 | 
					    - image: circleci/node:8.9.1
 | 
				
			||||||
 | 
					  working_directory: ~/gatsby-starter-lumen
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					jobs:
 | 
				
			||||||
 | 
					  install:
 | 
				
			||||||
 | 
					    <<: *defaults
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
      - checkout
 | 
					      - checkout
 | 
				
			||||||
      - restore_cache:
 | 
					      - restore_cache:
 | 
				
			||||||
          keys:
 | 
					          keys:
 | 
				
			||||||
            - dependencies-{{ checksum "yarn.lock" }}
 | 
					            - dependencies-{{ checksum "yarn.lock" }}
 | 
				
			||||||
            # fallback to using the latest cache if no exact match is found
 | 
					      - run: yarn install --frozen-lockfile
 | 
				
			||||||
            - dependencies-
 | 
					 | 
				
			||||||
      - run:
 | 
					 | 
				
			||||||
          name: Install and build package
 | 
					 | 
				
			||||||
          command: yarn install --frozen-lockfile
 | 
					 | 
				
			||||||
      - run: 
 | 
					 | 
				
			||||||
          name: "Lint"
 | 
					 | 
				
			||||||
          command: yarn lint:all
 | 
					 | 
				
			||||||
      - run:
 | 
					 | 
				
			||||||
          name: Coverage
 | 
					 | 
				
			||||||
          command: yarn test:coverage --runInBand --no-cache
 | 
					 | 
				
			||||||
      - run:
 | 
					 | 
				
			||||||
          name: Unit tests
 | 
					 | 
				
			||||||
          command: yarn test --runInBand --no-cache
 | 
					 | 
				
			||||||
      - save_cache:
 | 
					      - save_cache:
 | 
				
			||||||
          paths:
 | 
					          paths:
 | 
				
			||||||
            - node_modules
 | 
					            - node_modules
 | 
				
			||||||
          key: dependencies-{{ checksum "yarn.lock" }}
 | 
					          key: dependencies-{{ checksum "yarn.lock" }}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  lint:
 | 
				
			||||||
 | 
					    <<: *defaults
 | 
				
			||||||
 | 
					    steps:
 | 
				
			||||||
 | 
					      - checkout
 | 
				
			||||||
 | 
					      - restore_cache:
 | 
				
			||||||
 | 
					          keys:
 | 
				
			||||||
 | 
					            - dependencies-{{ checksum "yarn.lock" }}
 | 
				
			||||||
 | 
					      - run: yarn lint
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  test:
 | 
				
			||||||
 | 
					    <<: *defaults
 | 
				
			||||||
 | 
					    steps:
 | 
				
			||||||
 | 
					      - checkout
 | 
				
			||||||
 | 
					      - restore_cache:
 | 
				
			||||||
 | 
					          keys:
 | 
				
			||||||
 | 
					            - dependencies-{{ checksum "yarn.lock" }}
 | 
				
			||||||
 | 
					      - run: yarn test --runInBand --no-cache
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  coverage:
 | 
				
			||||||
 | 
					    <<: *defaults
 | 
				
			||||||
 | 
					    steps:
 | 
				
			||||||
 | 
					      - checkout
 | 
				
			||||||
 | 
					      - restore_cache:
 | 
				
			||||||
 | 
					          keys:
 | 
				
			||||||
 | 
					            - dependencies-{{ checksum "yarn.lock" }}
 | 
				
			||||||
 | 
					      - run: yarn test:coverage --runInBand --no-cache
 | 
				
			||||||
 | 
					      - save_cache:
 | 
				
			||||||
 | 
					          key: coverage-{{ .Environment.CIRCLE_SHA1 }}
 | 
				
			||||||
 | 
					          paths:
 | 
				
			||||||
 | 
					            - coverage
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  codecov:
 | 
				
			||||||
 | 
					    <<: *defaults
 | 
				
			||||||
 | 
					    steps:
 | 
				
			||||||
 | 
					      - checkout
 | 
				
			||||||
 | 
					      - restore_cache:
 | 
				
			||||||
 | 
					          keys:
 | 
				
			||||||
 | 
					            - dependencies-{{ checksum "yarn.lock" }}
 | 
				
			||||||
 | 
					      - restore_cache:
 | 
				
			||||||
 | 
					          keys:
 | 
				
			||||||
 | 
					            - coverage-output-{{ .Environment.CIRCLE_SHA1 }}
 | 
				
			||||||
 | 
					      - run: yarn global add codecov
 | 
				
			||||||
 | 
					      - run: yarn codecov
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
workflows:
 | 
					workflows:
 | 
				
			||||||
  version: 2
 | 
					  version: 2
 | 
				
			||||||
  build_test:
 | 
					  build_test:
 | 
				
			||||||
    jobs:
 | 
					    jobs:
 | 
				
			||||||
      - test
 | 
					      - install
 | 
				
			||||||
 | 
					      - lint:
 | 
				
			||||||
 | 
					          requires:
 | 
				
			||||||
 | 
					            - install
 | 
				
			||||||
 | 
					      - test:
 | 
				
			||||||
 | 
					          requires:
 | 
				
			||||||
 | 
					            - install
 | 
				
			||||||
 | 
					      - coverage:
 | 
				
			||||||
 | 
					          requires:
 | 
				
			||||||
 | 
					            - install
 | 
				
			||||||
 | 
					      - codecov:
 | 
				
			||||||
 | 
					          requires:
 | 
				
			||||||
 | 
					            - coverage
 | 
				
			||||||
		Reference in New Issue
	
	Block a user