build: Only pack production composer dependencies

This commit is contained in:
Starbeamrainbowlabs 2019-04-12 22:19:06 +01:00
parent 297c8fe996
commit 22807fcf92
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

14
build
View file

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