ci(travis): Update .travis.yml
- Avoid double build on PR - Add git fetch depth - Remove cache - Retry npm install
This commit is contained in:
		
							parent
							
								
									cc3c8f2548
								
							
						
					
					
						commit
						42b3382b0e
					
				
							
								
								
									
										28
									
								
								.travis.yml
									
									
									
									
									
								
							
							
						
						
									
										28
									
								
								.travis.yml
									
									
									
									
									
								
							| @ -1,17 +1,29 @@ | |||||||
| dist: trusty |  | ||||||
| language: node_js | language: node_js | ||||||
| cache: | services: | ||||||
|   directories: |   - couchdb | ||||||
|   - $HOME/.npm |  | ||||||
| notifications: | notifications: | ||||||
|   email: false |   email: false | ||||||
| node_js: | node_js: | ||||||
|   - 8 |   - 8 | ||||||
| services: | 
 | ||||||
| - couchdb | # Trigger a push build on caribou and greenkeeper branches + PRs build on every branches | ||||||
|  | # Avoid double build on PRs (See https://github.com/travis-ci/travis-ci/issues/1147) | ||||||
| branches: | branches: | ||||||
|   except: |   only: | ||||||
|   - /^v\d+\.\d+\.\d+$/ |     - caribou | ||||||
|  |     - /^greenkeeper.*$/ | ||||||
|  | 
 | ||||||
|  | # Retrieve 999 commits (default is 50) so semantic-release can analyze all commits when there is more than 50 on a PR | ||||||
|  | git: | ||||||
|  |   depth: 999 | ||||||
|  | 
 | ||||||
|  | # 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: | after_success: | ||||||
|   - npm run codecov |   - npm run codecov | ||||||
|   - npm run semantic-release |   - npm run semantic-release | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user