-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
4,337 additions
and
11,120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
if: tag IS blank | ||
|
||
os: osx | ||
language: node_js | ||
node_js: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,47 @@ | ||
const shell = require('shelljs'); | ||
const path = require('path'); | ||
const process = require('process'); | ||
|
||
const packages = ['packages/lib', 'packages/cli', 'packages/vscode']; | ||
const createExecYarn = package => args => { | ||
shell.config.execPath = shell.which('node').toString(); | ||
const { code } = shell.exec( | ||
`yarn ${(package && `workspace ${package}`) || ''} ${(args || []).join(' ')}` | ||
); | ||
if (code !== 0) { | ||
console.error('Failing build due to last error.'); | ||
process.exit(1); | ||
} | ||
}; | ||
|
||
const packages = ['nuget-extensions-lib', 'nuget-extensions', 'nuget-extensions-vscode']; | ||
|
||
createExecYarn()(); | ||
|
||
packages.reduce((_, package) => { | ||
const execYarn = args => { | ||
shell.config.execPath = shell.which('node').toString(); | ||
const { code } = shell.exec(`yarn ${args.join(' ')}`, { | ||
cwd: path.join(process.cwd(), package), | ||
}); | ||
if (code !== 0) { | ||
console.error('Failing build due to last error.'); | ||
process.exit(1); | ||
} | ||
}; | ||
const execYarn = createExecYarn(package); | ||
|
||
console.log(`\nBuilding ${package}\n`); | ||
execYarn(['--force']); | ||
|
||
if (package === 'packages/vscode') { | ||
if (package === 'nuget-extensions-vscode') { | ||
execYarn(['link', 'nuget-extensions-lib']); | ||
} | ||
|
||
execYarn(['build']); | ||
|
||
if (package === 'packages/lib') { | ||
if (package === 'nuget-extensions-lib') { | ||
// yarn install destroys symlinks (in devDependency deps), make sure `yarn jest` works. | ||
execYarn(['add', '--dev', 'jest-cli']); | ||
execYarn(['link']); | ||
} | ||
|
||
// The current travis.yml doesn't support launching VSCode windows for integration tests. | ||
if (package === 'packages/lib') { | ||
if (package === 'nuget-extensions-lib') { | ||
execYarn(['test', '--coverage']); | ||
} | ||
|
||
if (package === 'packages/vscode') { | ||
// Only release from Travis, not Appveyor. | ||
if (process.env.TRAVIS) { | ||
execYarn(['semantic-release']); | ||
} | ||
|
||
return _; | ||
}, {}); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
module.exports = { | ||
branches: ['release'], | ||
tagFormat: 'cli@v${version}', | ||
plugins: [ | ||
[ | ||
'filtered-commit-analyzer', | ||
{ | ||
preset: 'angular', | ||
filterRules: { | ||
scope: 'cli', | ||
}, | ||
}, | ||
], | ||
'@semantic-release/npm', | ||
], | ||
}; |
Oops, something went wrong.