Browse Source

build: Only pack production composer dependencies

pull/35/head
Starbeamrainbowlabs 4 years ago
parent
commit
22807fcf92
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
  1. 14
      build

14
build

@ -280,8 +280,20 @@ task_ci() { @@ -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 $?;
}

Loading…
Cancel
Save