Skip to content
This repository has been archived by the owner on Nov 15, 2017. It is now read-only.

Commit

Permalink
Fix slate test command passing on Circle CI (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Berthe authored Jul 5, 2017
1 parent 88ba3f7 commit 4f5e0c7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/tasks/includes/lint-reporter.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
const gutil = require('gulp-util');
const _ = require('lodash');

const messages = require('./messages.js');

/** Class representing a custom reporter for @shopify/theme-lint */
export default class Reporter {
constructor() {
Expand Down Expand Up @@ -53,6 +55,8 @@ export default class Reporter {
return gutil.log(failure[0]);
});
});

throw new Error(messages.translationsFailed());
}

this.successes = this.failures = [];
Expand Down
4 changes: 4 additions & 0 deletions src/tasks/includes/messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ const messages = {
' and run a full <slate deploy> as a result.';
},

translationsFailed: () => {
return 'Translation errors detected.';
},

invalidThemeId: (themeId, env) => {
gutil.log('Invalid theme id for',
gutil.colors.cyan(`${env}: ${themeId}`),
Expand Down

0 comments on commit 4f5e0c7

Please sign in to comment.