fix: allow to set ci option via API and config file

This commit is contained in:
Pierre Vanduynslager
2018-12-11 13:33:06 -05:00
parent 6b110b6e9e
commit 862ec4c087
4 changed files with 15 additions and 17 deletions
+3
View File
@@ -27,6 +27,9 @@ module.exports = async (context, opts) => {
// Merge config file options and CLI/API options
let options = {...config, ...opts};
if (options.ci === false) {
options.noCi = true;
}
const pluginsPath = {};
let extendPaths;
({extends: extendPaths, ...options} = options);