Skip to content

Commit

Permalink
feat: release new version 2.0.8 with docker compose v2 IA-974 (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitrovn authored Jul 17, 2023
1 parent fa270b9 commit 873c825
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 13 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"php": ">7.0.1"
},
"type": "magento2-module",
"version": "2.0.7",
"version": "2.0.8",
"autoload": {
"files": [
"registration.php"
Expand Down
4 changes: 2 additions & 2 deletions dev/jenkins/destroy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ else
composefile="docker-compose.yml"
fi

alias compose="docker-compose -f $composefile"
alias compose="docker compose -f $composefile"

compose -p mage_unit_$VERSION down || echo "Could not stop Docker..."
compose -p mage_e2e_$VERSION down || echo "Could not stop Docker..."
compose -p mage_e2e_$VERSION down || echo "Could not stop Docker..."
5 changes: 4 additions & 1 deletion dev/jenkins/run-e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ else
composefile="docker-compose.yml"
fi

alias compose="docker-compose -p mage_e2e_$VERSION -f $composefile"
project_version=$(echo "$VERSION" | tr '.' '_')
echo "\n|--- Using docker compose project $project_version"

alias compose="docker compose -p mage_e2e_$project_version -f $composefile"

compose down

Expand Down
7 changes: 5 additions & 2 deletions dev/jenkins/run-unit.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env sh

set -e
set +e

BASEDIR=$(dirname "$0")
cd $BASEDIR
Expand All @@ -12,7 +12,10 @@ else
composefile="docker-compose.yml"
fi

alias compose="docker-compose -p mage_unit_$VERSION -f $composefile"
project_version=$(echo "$VERSION" | tr '.' '_')
echo "\n|--- Using docker compose project $project_version"

alias compose="docker compose -p mage_unit_$project_version -f $composefile"

compose down

Expand Down
11 changes: 7 additions & 4 deletions dev/jenkins/wait.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,17 @@

RUNNER=$1

project_version=$(echo "$VERSION" | tr '.' '_')
echo -e "\n|--- Using docker compose project $project_version"

wait_it()
{
while :
do
result=$(docker-compose -p "mage_${RUNNER}_${VERSION}" ps | grep magento)
echo $result
result=$(docker compose -p "mage_${RUNNER}_${project_version}" ps | grep magento)
echo -e $result
if [ ! -z "$result" ]; then
healthy=$(echo $result | grep "Up (healthy)")
healthy=$(echo $result | grep "(healthy)")
if [ ! -z "$healthy" ]; then
echo "ready"
break
Expand All @@ -24,4 +27,4 @@ wait_it()
done
}

wait_it
wait_it
4 changes: 2 additions & 2 deletions dev/wait.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ wait_it()
{
while :
do
result=$(docker-compose -p "mage" ps | grep magento-test)
result=$(docker compose -p "mage" ps | grep magento-test)
if [ ! -z "$result" ]; then
healthy=$(echo $result | grep "Up (healthy)")
if [ ! -z "$healthy" ]; then
Expand All @@ -28,4 +28,4 @@ wait_it()
done
}

wait_it
wait_it
2 changes: 1 addition & 1 deletion etc/module.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0"?>

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Emartech_Emarsys" setup_version="2.0.7">
<module name="Emartech_Emarsys" setup_version="2.0.8">
<sequence>
<module name="Magento_Sales" />
</sequence>
Expand Down

0 comments on commit 873c825

Please sign in to comment.