Fix setup task
All checks were successful
continuous-integration/laminar-elessar Build 2 succeeded in 44 seconds .

This commit is contained in:
Starbeamrainbowlabs 2019-03-11 16:52:26 +00:00
parent 234ed7e9ed
commit e16abe3e6d
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

16
build
View file

@ -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;
}