Skip to content
This repository has been archived by the owner on Jun 16, 2021. It is now read-only.

Commit

Permalink
ci: 🎡 add scripts to Travis CI script
Browse files Browse the repository at this point in the history
  • Loading branch information
streamich committed Jun 5, 2018
1 parent 8570804 commit 1638590
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ index.js
package-lock.json
run.js
yarn.lock
/test/
8 changes: 5 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
language: node_js
install:
- npm install
- yarn install
script:
- npm run lint
- yarn lint
- yarn build
- yarn test
after_success:
- npm run semantic-release
- npx semantic-release
- npx ci-scripts slack
- npx ci-scripts github-post
branches:
Expand Down
6 changes: 2 additions & 4 deletions lib/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ const formatCommitMessage = require('./formatCommitMessage');
// eslint-disable-next-line no-process-env
const executeCommand = (command, args = [], env = process.env) => {
const formattedCommand = shellescape([command, ...args]);
console.log('formattedCommand', formattedCommand)
const proc = spawn(formattedCommand, [], {
env,
shell: true,
Expand All @@ -23,9 +22,8 @@ const executeCommand = (command, args = [], env = process.env) => {
};

// eslint-disable-next-line no-process-env
const appendToExecuteCommand = (prepend) => (command, args = [], env = process.env) => {
return executeCommand(command, [...args, ...prepend], env);
};
const appendToExecuteCommand = (prepend) => (command, args = [], env = process.env) =>
executeCommand(command, [...args, ...prepend], env);

const main = async () => {
try {
Expand Down
2 changes: 1 addition & 1 deletion lib/formatCommitMessage.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const formatCommitMessage = (state) => {

let scope = '';

if (answers.scope && (answers.scope !== 'none')) {
if (answers.scope && answers.scope !== 'none') {
scope = `(${answers.scope})`;
}

Expand Down

0 comments on commit 1638590

Please sign in to comment.