Fix setup task
All checks were successful
continuous-integration/laminar-elessar Build 2 succeeded in 44 seconds .
All checks were successful
continuous-integration/laminar-elessar Build 2 succeeded in 44 seconds .
This commit is contained in:
parent
234ed7e9ed
commit
e16abe3e6d
1 changed files with 10 additions and 6 deletions
16
build
16
build
|
@ -49,21 +49,25 @@ fi
|
|||
###############################################################################
|
||||
|
||||
task_setup() {
|
||||
task_begin "Setting up";
|
||||
stage_begin "Setting up";
|
||||
|
||||
check_command git true;
|
||||
check_command node true;
|
||||
check_command npm true;
|
||||
|
||||
subtask_begin "Creating build output directory";
|
||||
task_begin "Creating build output directory";
|
||||
mkdir -p "${build_output_folder}";
|
||||
subtask_end $?;
|
||||
subtask_end $? "Error: Failed to create build output directory at ${HC}${build_output_folder}${RS}";
|
||||
|
||||
subtask_begin "Initialising submodules";
|
||||
task_begin "Initialising submodules";
|
||||
git submodule update --init;
|
||||
subtask_end $?;
|
||||
task_end $? "Error: Failed to initialise submodules";
|
||||
|
||||
task_end 0;
|
||||
task_begin "Installing dependencies";
|
||||
npm install;
|
||||
task_end $? "Error: Failed to install dependencies";
|
||||
|
||||
stage_end 0;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue