Created by
Marvin Oßwald
last modified
| # Install modman
# --------------------
SRC="https://raw.githubusercontent.com/colinmollenhour/modman/master/modman"
DEST="mm"
# test if curl/wget is installed
if hash curl 2>&- ; then
CMD="curl -s -L $SRC -o $DEST"
elif hash wget 2>&- ; then
CMD="wget -q --no-check-certificate -O $DEST $SRC"
else
echo "You need to have curl or wget installed."
exit 1
fi
$CMD
chmod +x $DEST
# Download MagentoTarToConnect.phar to build.phar
wget -O build.phar https://github.com/astorm/MagentoTarToConnect/blob/master/magento-tar-to-connect.phar?raw=true
chmod +x build.phar
#Build package
mkdir build
./mm init build
./mm clone --copy ${GIT_URL} --branch ${CI_BRANCH}
rm -r build/var
tar -cf build.tar -C build .
./build.phar build.config.php
R_VERSION=`echo $CI_BRANCH| cut -d'_' -f 2`
lftp -c "open -u $FTP_USER,$FTP_PASSWORD $FTP_HOST; set ssl:verify-certificate no; mirror -R ${PWD}/build_artifact /${NAME}/${R_VERSION}"
|