ci: use Travis import to share config across organization
This commit is contained in:
		
							parent
							
								
									ecc4e663f5
								
							
						
					
					
						commit
						a373f8be14
					
				
							
								
								
									
										36
									
								
								.travis.yml
									
									
									
									
									
								
							
							
						
						
									
										36
									
								
								.travis.yml
									
									
									
									
									
								
							| @ -1,33 +1,11 @@ | |||||||
| language: node_js | version: ~> 1.0 | ||||||
| 
 | 
 | ||||||
| services: | services: | ||||||
|   - docker |   - docker | ||||||
| 
 | 
 | ||||||
| node_js: | import: | ||||||
|   - 12 |   - .travis/node.yml | ||||||
|   - 10 |   - .travis/node-versions.yml | ||||||
|   - 8.16 |   - .travis/semantic-release.yml | ||||||
| 
 |   - .travis/greenkeeper.yml | ||||||
| # Trigger a push build on master and greenkeeper branches + PRs build on every branches |   - .travis/codecov.yml | ||||||
| # Avoid double build on PRs (See https://github.com/travis-ci/travis-ci/issues/1147) |  | ||||||
| branches: |  | ||||||
|   only: |  | ||||||
|     - master |  | ||||||
|     - /^greenkeeper.*$/ |  | ||||||
| 
 |  | ||||||
| # Retry install on fail to avoid failing a build on network/disk/external errors |  | ||||||
| install: |  | ||||||
|   - travis_retry npm install |  | ||||||
| 
 |  | ||||||
| script: |  | ||||||
|   - npm run test |  | ||||||
| 
 |  | ||||||
| after_success: |  | ||||||
|   - npm run codecov |  | ||||||
| 
 |  | ||||||
| jobs: |  | ||||||
|   include: |  | ||||||
|     - stage: release |  | ||||||
|       node_js: lts/* |  | ||||||
|       script: |  | ||||||
|         - npm run semantic-release |  | ||||||
|  | |||||||
							
								
								
									
										2
									
								
								.travis/codecov.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								.travis/codecov.yml
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,2 @@ | |||||||
|  | after_success: | ||||||
|  |   - npm run codecov | ||||||
							
								
								
									
										3
									
								
								.travis/greenkeeper.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								.travis/greenkeeper.yml
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,3 @@ | |||||||
|  | branches: | ||||||
|  |   only: | ||||||
|  |     - /^greenkeeper.*$/ | ||||||
							
								
								
									
										4
									
								
								.travis/node-versions.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								.travis/node-versions.yml
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,4 @@ | |||||||
|  | node_js: | ||||||
|  |   - 12 | ||||||
|  |   - 10 | ||||||
|  |   - 8.16 | ||||||
							
								
								
									
										11
									
								
								.travis/node.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								.travis/node.yml
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,11 @@ | |||||||
|  | language: node_js | ||||||
|  | 
 | ||||||
|  | cache: | ||||||
|  |   npm: false | ||||||
|  | 
 | ||||||
|  | # Retry install on fail to avoid failing a build on network/disk/external errors | ||||||
|  | install: | ||||||
|  |   - travis_retry npm install | ||||||
|  | 
 | ||||||
|  | script: | ||||||
|  |   - npm run test | ||||||
							
								
								
									
										15
									
								
								.travis/semantic-release.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								.travis/semantic-release.yml
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,15 @@ | |||||||
|  | branches: | ||||||
|  |   only: | ||||||
|  |     - master | ||||||
|  |     - next | ||||||
|  |     - beta | ||||||
|  |     - /^\d+\.(\d+|x)(\.x)?$/ | ||||||
|  | 
 | ||||||
|  | jobs: | ||||||
|  |   include: | ||||||
|  |     - stage: release | ||||||
|  |       node_js: lts/* | ||||||
|  |       install: | ||||||
|  |         - travis_retry npm install | ||||||
|  |       script: | ||||||
|  |         - npm run semantic-release | ||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user