Skip to content

Commit

Permalink
Merge pull request #67 from bestit/develop
Browse files Browse the repository at this point in the history
Release 3.2.1
  • Loading branch information
bgutmann authored Oct 16, 2018
2 parents e6abf09 + 3901e88 commit db7d28e
Show file tree
Hide file tree
Showing 10 changed files with 68 additions and 1,779 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ before_script:
- docker pull "$IMAGE_NAME" || true
script:
- docker-compose up -d
- docker-compose exec phpunit /bin/bash -c "chmod +x ./build.sh && ./build.sh 5 && ./build.sh 6"
- docker-compose exec phpunit /bin/bash -c "chmod +x ./build.sh && ./build.sh 5 && ./build.sh 6 && ./build.sh 6.0 && ./build.sh 6.1"
before_deploy:
- ssh-keyscan $DEPLOYMENT_SERVER >> $HOME/.ssh/known_hosts
- (umask 077 ; echo $DEPLOYMENT_SSH_KEY | base64 --decode > /tmp/deploy_rsa)
Expand Down
11 changes: 4 additions & 7 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ cd ${TEMP_DIR}
# Setup shop
echo "=== Setup shop ==="
if [[ ${OXID_VERSION} == 5 ]]; then
git clone https://github.com/OXID-eSales/oxideshop_ce.git --branch b-5.3-ce
git clone --branch b-5.3-ce --depth 1 https://github.com/OXID-eSales/oxideshop_ce.git
composer install -n -d ${SHOP_DIR} --ignore-platform-reqs
sed -i 's|<dbHost_ce>|'${DB_HOST}'|; s|<dbName_ce>|oxidehop_ce|; s|<dbUser_ce>|'${DB_USER}'|; s|<dbPwd_ce>|'${DB_PASS}'|; s|<sShopURL_ce>|http://127.0.0.1|; s|<sShopDir_ce>|'${SHOP_DIR}'|; s|<sCompileDir_ce>|'${SHOP_DIR}'/tmp|; s|<iUtfMode>|0|; s|$this->iDebug = 0|$this->iDebug = 1|; s|mysql|mysqli|' ${SHOP_DIR}/config.inc.php
wget "https://raw.githubusercontent.com/OXID-eSales/oxideshop_demodata_ce/b-5.3/src/demodata.sql" -P oxideshop_ce/source/setup/sql/
Expand All @@ -51,8 +51,8 @@ if [[ ${OXID_VERSION} == 5 ]]; then
cp -R flow/out/flow ../../out/

cp ${CURRENT_DIR}/test_config.yml ${SHOP_DIR}
elif [[ ${OXID_VERSION} == 6 ]]; then
git clone --branch b-6.x https://github.com/OXID-eSales/oxideshop_ce.git
else
git clone --branch b-${OXID_VERSION}.x --depth 1 https://github.com/OXID-eSales/oxideshop_ce.git

SHOP_PATH='source'
SHOP_TESTS_PATH='tests'
Expand Down Expand Up @@ -82,12 +82,9 @@ echo "=== Setup unit tests and run them ==="
TEST_SUITE="${MODULE_BASE_DIR}/tests/"
cd ${MODULE_BASE_DIR}/tests/

# push oxid version to env variable
export OXID_VERSION=${OXID_VERSION}

if [[ ${OXID_VERSION} == 5 ]]; then
${SHOP_DIR}/vendor/bin/runtests
elif [[ ${OXID_VERSION} == 6 ]]; then
else
apt-get -y install sudo # oxid needs sudo -.-
${BASE_DIR}/vendor/bin/runtests
fi
5 changes: 1 addition & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "oxideshop-module",
"keywords": ["oxid", "modules", "eShop"],
"homepage": "https://www.bestit-online.de",
"version": "3.2.0",
"version": "3.2.1",
"license": [
"GPL-3.0-only",
"proprietary"
Expand All @@ -26,9 +26,6 @@
"amzn/amazon-pay-sdk-php": "~3.2.0",
"monolog/monolog": "^1.23"
},
"require-dev": {
"etsy/phpunit-extensions": "~0.7"
},
"autoload": {
"exclude-from-classmap": ["/vendor/phpunit/", "/vendor/sebastian/"]
}
Expand Down
Loading

0 comments on commit db7d28e

Please sign in to comment.