-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #263 from alma/develop
Release 3.1.2
- Loading branch information
Showing
12 changed files
with
186 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
FROM composer:2.2 AS composer | ||
FROM php:5.6-cli-alpine AS php | ||
|
||
# Prepare Packages requirements | ||
RUN apk update && apk add zip | ||
|
||
COPY --from=composer /usr/bin/composer /usr/bin/composer | ||
|
||
ENTRYPOINT [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Build alma.zip from the module's source directory | ||
|
||
SRC_DIR=$(pwd) | ||
BUILD_DIR="/tmp/build/alma" | ||
|
||
mkdir -p $BUILD_DIR | ||
cp CHANGELOG.md $SRC_DIR/alma/ | ||
cp -r $SRC_DIR/alma/* $BUILD_DIR | ||
cp $SRC_DIR/alma/.htaccess $BUILD_DIR/ | ||
|
||
if [ ! -d "./dist" ]; then | ||
mkdir ./dist | ||
fi | ||
|
||
cd $BUILD_DIR | ||
|
||
rm -f composer.lock config.xml config_*.xml phpunit.ci.xml phpunit.dist.xml | ||
rm -rf tests vendor | ||
|
||
php /usr/bin/composer install --no-dev --optimize-autoloader | ||
php /usr/bin/composer dump-autoload --optimize | ||
php vendor/bin/autoindex prestashop:add:index | ||
|
||
cd .. | ||
|
||
zip -9 -r "$SRC_DIR/dist/alma.zip" alma --exclude "*/*/.*" "*/build.sh" "*/dist" "*/docker*" | ||
|
||
rm -rf $BUILD_DIR | ||
rm -rf "$SRC_DIR/alma/CHANGELOG.md" |