mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
Fixed Travis to exit early on lint failures and skip duplicate linting in ember tests
no issue - Travis runs all `script` tasks even if an earlier one fails so moved to using `&&` so ember tests aren't run if linting errors - Added `ember-cli-eslint` to the addons blacklist when building in Travis so that we aren't running linting twice (also reduces build log output)
This commit is contained in:
parent
a0e9422699
commit
02f73bc44e
2 changed files with 7 additions and 2 deletions
|
@ -31,8 +31,7 @@ install:
|
||||||
- yarn
|
- yarn
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- npm run lint:js
|
- npm run lint:js && COVERAGE=true npm test
|
||||||
- COVERAGE=true npm test
|
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
- npm run coverage
|
- npm run coverage
|
||||||
|
|
|
@ -105,8 +105,14 @@ const simplemdeAssets = function () {
|
||||||
return config;
|
return config;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
let blacklist = [];
|
||||||
|
if (process.env.CI) {
|
||||||
|
blacklist.push('ember-cli-eslint');
|
||||||
|
}
|
||||||
|
|
||||||
module.exports = function (defaults) {
|
module.exports = function (defaults) {
|
||||||
let app = new EmberApp(defaults, {
|
let app = new EmberApp(defaults, {
|
||||||
|
addons: {blacklist},
|
||||||
'ember-cli-babel': {
|
'ember-cli-babel': {
|
||||||
optional: ['es6.spec.symbols'],
|
optional: ['es6.spec.symbols'],
|
||||||
includePolyfill: false
|
includePolyfill: false
|
||||||
|
|
Loading…
Add table
Reference in a new issue