mirror of
				https://github.com/KevinMidboe/waka-box.git
				synced 2025-10-29 18:00:21 +00:00 
			
		
		
		
	Add circle config
This commit is contained in:
		
							
								
								
									
										46
									
								
								.circleci/config.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										46
									
								
								.circleci/config.yml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,46 @@ | ||||
| version: 2.1 | ||||
|  | ||||
| defaults: &defaults | ||||
|   working_directory: ~/repo | ||||
|   docker: | ||||
|     - image: circleci/node:10 | ||||
|  | ||||
| commands: | ||||
|   install: | ||||
|     steps: | ||||
|       - checkout | ||||
|       - restore_cache: | ||||
|           keys: | ||||
|           - dependency-cache-{{ checksum "package.json" }} | ||||
|           - dependency-cache- | ||||
|       - run: npm install | ||||
|       - save_cache: | ||||
|           key: dependency-cache-{{ checksum "package.json" }} | ||||
|           paths: | ||||
|             - node_modules | ||||
|  | ||||
| jobs: | ||||
|   birdbox: | ||||
|     <<: *defaults | ||||
|     steps: | ||||
|       - install | ||||
|       - run: node index.js | ||||
|  | ||||
| workflows: | ||||
|   version: 2 | ||||
|  | ||||
|   test: | ||||
|     jobs: | ||||
|       - birdbox | ||||
|  | ||||
|   poll: | ||||
|     triggers: | ||||
|       - schedule: | ||||
|           # Run once every 5 minutes | ||||
|           cron: "0,5,10,15,20,25,30,35,40,45,50,55 * * * *" | ||||
|           filters: | ||||
|             branches: | ||||
|               only: | ||||
|                 - master | ||||
|     jobs: | ||||
|       - birdbox | ||||
		Reference in New Issue
	
	Block a user