This commit removes babel/es6 from all source and test files, because it was introducing a lot of overhead and only little gain. This commit fixes and enables integration tests on Travis. This commit fixes #153 and #151 along the way. _Originally this commit should have only removed babel, but without working tests that's a bit too hairy._ _I only realized that half way into removing babel/es6, so things are all over the place now._ Closes #153, Closes #151
		
			
				
	
	
		
			37 lines
		
	
	
		
			850 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			37 lines
		
	
	
		
			850 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| var exec = require('child_process').exec
 | |
| var join = require('path').join
 | |
| var writeFileSync = require('fs').writeFileSync
 | |
| 
 | |
| var mkdirp = require('mkdirp')
 | |
| 
 | |
| module.exports = function (name, registry, cb) {
 | |
|   var cwd = join(__dirname, '../tmp', name)
 | |
| 
 | |
|   mkdirp.sync(cwd)
 | |
| 
 | |
|   writeFileSync(join(cwd, 'package.json'), JSON.stringify({
 | |
|     name: name,
 | |
|     repository: {
 | |
|       url: 'git+https://github.com/semantic-release/test'
 | |
|     },
 | |
|     release: {
 | |
|       verifyConditions: '../../../src/lib/plugin-noop'
 | |
|     }
 | |
|   }, null, 2))
 | |
| 
 | |
|   exec(
 | |
|   'git init && ' +
 | |
|   'git config user.email "integration@test" && ' +
 | |
|   'git config user.name "Integration Test" && ' +
 | |
|   'git add . && ' +
 | |
|   'git commit -m "chore: root"'
 | |
|   , {cwd: cwd}, function (err, stdout, stderr) {
 | |
|     if (err) {
 | |
|       console.log(stdout, stderr)
 | |
|       return cb(err)
 | |
|     }
 | |
| 
 | |
|     cb(null, cwd)
 | |
|   })
 | |
| }
 |