From 6c842e6136c6909ed32331a353efd298961ca0a6 Mon Sep 17 00:00:00 2001 From: Jules Bertholet Date: Sat, 29 May 2021 00:41:41 -0400 Subject: [PATCH] More log output for CI --- scripts/_common.sh | 16 +++++++++------- scripts/install | 2 +- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index c562403..4ea9b4e 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -54,18 +54,20 @@ function set_node_vars { function build_app { set_node_vars + set +x + pushd "$final_path" chown -R $admin:$admin "$final_path" sudo -u $admin touch $final_path/.yarnrc - sudo -u $admin env "PATH=$node_path" yarn --cache-folder "$final_path/yarn-cache" --use-yarnrc "$final_path/.yarnrc" config set python python3 2>&1 - sudo -u $admin env "PATH=$node_path" yarn --cache-folder "$final_path/yarn-cache" --use-yarnrc "$final_path/.yarnrc" install 2>&1 - sudo -u $admin env "PATH=$node_path" yarn --cache-folder "$final_path/yarn-cache" --use-yarnrc "$final_path/.yarnrc" build 2>&1 - sudo -u $admin env "PATH=$node_path" yarn --cache-folder "$final_path/yarn-cache" --use-yarnrc "$final_path/.yarnrc" build:vscode 2>&1 - sudo -u $admin env "PATH=$node_path" yarn --cache-folder "$final_path/yarn-cache" --use-yarnrc "$final_path/.yarnrc" release 2>&1 + sudo -u $admin env "PATH=$node_path" yarn --cache-folder "$final_path/yarn-cache" --use-yarnrc "$final_path/.yarnrc" config set python python3 1>&2 + sudo -u $admin env "PATH=$node_path" yarn --cache-folder "$final_path/yarn-cache" --use-yarnrc "$final_path/.yarnrc" install 1>&2 + sudo -u $admin env "PATH=$node_path" yarn --cache-folder "$final_path/yarn-cache" --use-yarnrc "$final_path/.yarnrc" build 1>&2 + sudo -u $admin env "PATH=$node_path" yarn --cache-folder "$final_path/yarn-cache" --use-yarnrc "$final_path/.yarnrc" build:vscode 1>&2 + sudo -u $admin env "PATH=$node_path" yarn --cache-folder "$final_path/yarn-cache" --use-yarnrc "$final_path/.yarnrc" release 1>&2 cd release - sudo -u $admin env "PATH=$node_path" yarn --cache-folder "$final_path/yarn-cache" --use-yarnrc "$final_path/.yarnrc" install --production 2>&1 + sudo -u $admin env "PATH=$node_path" yarn --cache-folder "$final_path/yarn-cache" --use-yarnrc "$final_path/.yarnrc" install --production 1>&2 cd .. - sudo -u $admin env "PATH=$node_path" yarn --cache-folder "$final_path/yarn-cache" --use-yarnrc "$final_path/.yarnrc" release:standalone 2>&1 + sudo -u $admin env "PATH=$node_path" yarn --cache-folder "$final_path/yarn-cache" --use-yarnrc "$final_path/.yarnrc" release:standalone 1>&2 popd set_permissions diff --git a/scripts/install b/scripts/install index 5803699..af1cee6 100755 --- a/scripts/install +++ b/scripts/install @@ -88,7 +88,7 @@ install_dependencies #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE #================================================= -ynh_script_progression --message="Setting up source files..."--weight=25 +ynh_script_progression --message="Setting up source files..." --weight=25 ynh_app_setting_set --app=$app --key=final_path --value=$final_path ynh_app_setting_set --app=$app --key=data_path --value=$data_path