Просмотр исходного кода

ci: fail CI if asset bundling fails (#14364)

* ci: fail CI if asset bundling fails

* chore: formatting

Co-authored-by: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com>
version-14
Ankush Menat 3 лет назад
committed by GitHub
Родитель
Сommit
e6bbc698d0
Не найден GPG ключ соответствующий данной подписи Идентификатор GPG ключа: 4AEE18F83AFDEB23
3 измененных файлов: 6 добавлений и 3 удалений
  1. +1
    -1
      .github/helper/install.sh
  2. +4
    -1
      esbuild/esbuild.js
  3. +1
    -1
      frappe/build.py

+ 1
- 1
.github/helper/install.sh Просмотреть файл

@@ -59,4 +59,4 @@ cd ../..
bench start &
bench --site test_site reinstall --yes
if [ "$TYPE" == "server" ]; then bench --site test_site_producer reinstall --yes; fi
bench build --app frappe
CI=Yes bench build --app frappe

+ 4
- 1
esbuild/esbuild.js Просмотреть файл

@@ -104,6 +104,9 @@ async function execute() {
log_error("There were some problems during build");
log();
log(chalk.dim(e.stack));
if (process.env.CI) {
process.kill(process.pid);
}
return;
}

@@ -528,4 +531,4 @@ function log_rebuilt_assets(prev_assets, new_assets) {
log(" " + filename);
}
log();
}
}

+ 1
- 1
frappe/build.py Просмотреть файл

@@ -246,7 +246,7 @@ def bundle(mode, apps=None, hard_link=False, make_copy=False, restore=False, ver

check_node_executable()
frappe_app_path = frappe.get_app_path("frappe", "..")
frappe.commands.popen(command, cwd=frappe_app_path, env=get_node_env())
frappe.commands.popen(command, cwd=frappe_app_path, env=get_node_env(), raise_err=True)


def watch(apps=None):


Загрузка…
Отмена
Сохранить