Skip to content

Commit c52b06b

Browse files
author
Leon Stafford
committed
quieten build script
1 parent 5b1fadf commit c52b06b

2 files changed

Lines changed: 3 additions & 9 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
/vendor/
22
/vendor_prefixed/
3+
coverage/
34

tools/build_release.sh

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,10 @@ mkdir -p $TMP_DIR
2020
rm -Rf $TMP_DIR/wp2static-addon-s3
2121
mkdir $TMP_DIR/wp2static-addon-s3
2222

23-
2423
# clear dev dependencies
2524
rm -Rf $EXEC_DIR/vendor/*
2625
# load prod deps and optimize loader
27-
composer install --no-dev --optimize-autoloader
28-
26+
composer install --quiet --no-dev --optimize-autoloader
2927

3028
# cp all required sources to build dir
3129
cp -r $EXEC_DIR/*.php $TMP_DIR/wp2static-addon-s3/
@@ -40,11 +38,6 @@ cd $TMP_DIR
4038
find . -type d -exec chmod 755 {} \;
4139
find . -type f -exec chmod 644 {} \;
4240

43-
# strip comments and whitespace from each PHP file
44-
if [ -z "$2" ]; then
45-
find . ! -name 'wp2static-addon-s3.php' -name \*.php -exec $EXEC_DIR/tools/compress_php_file {} \;
46-
fi
47-
4841
zip -r -9 ./$1.zip ./wp2static-addon-s3
4942

5043
cd -
@@ -58,4 +51,4 @@ cd $EXEC_DIR
5851
# clear dev dependencies
5952
rm -Rf $EXEC_DIR/vendor/*
6053
# load prod deps
61-
composer install
54+
composer install --quiet

0 commit comments

Comments
 (0)