mirror of
https://github.com/ConnectedHumber/Air-Quality-Web
synced 2024-11-25 06:53:00 +00:00
build: Only pack production composer dependencies
This commit is contained in:
parent
297c8fe996
commit
22807fcf92
1 changed files with 13 additions and 1 deletions
14
build
14
build
|
@ -280,8 +280,20 @@ task_ci() {
|
||||||
}
|
}
|
||||||
|
|
||||||
task_archive() {
|
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.
|
# 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…
Reference in a new issue