diff --git a/build b/build index a402386..9215ad4 100755 --- a/build +++ b/build @@ -280,8 +280,20 @@ task_ci() { } task_archive() { + task_begin "Preparing to archive"; + archive mv vendor vendor.bak; + execute "${cache_dir}/composer" install --no-dev; + task_end $?; + + task_begin "Packing archive"; # We include the data directory here because we assume that this task is ONLY run in a CI environment, so it should only contain the default setup generated by an earlier task. - execute tar cafv "${ARCHIVE}/Air-Quality-Web.tar.gz" app/ __nightdocs/ lib/ logic/ vendor/ data/ *.php *.md LICENSE version settings.default.toml + execute tar cafv "${ARCHIVE}/Air-Quality-Web.tar.gz" app/ __nightdocs/ lib/ logic/ vendor/ data/ *.php *.md LICENSE version settings.default.toml; + task_end $?; + + task_begin "Cleaning up"; + execute rm -rf vendor; + execute mv vendor.bak vendor; + task_end $?; }