Skip to content

Commit 467ea74

Browse files
authored
Merge pull request #173 from WyriHaximusNet/support-upper-case-alpha,-beta,-and-rc-suffixes
Support upper case alpha, beta, and rc suffixes
2 parents 48a35d8 + 0a73c0b commit 467ea74

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

Dockerfile-nts-debian

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ RUN touch /.you-are-in-a-wyrihaximus.net-php-docker-image-dev
9494
# Install docker help scripts
9595
COPY src/php/utils/docker/debian/dev-mode /usr/local/bin/dev-mode
9696
COPY src/php/utils/docker/debian/docker-php-dev-mode /usr/local/bin/docker-php-dev-mode
97-
RUN if [ $(php -v | grep "alpha\|beta\|rc" | wc -l) != 0 ] ; then true ; else dev-mode; fi \
97+
RUN if [ $(php -v | grep "alpha\|ALPHA\|beta\|BETA\|rc\|RC" | wc -l) != 0 ] ; then true ; else dev-mode; fi \
9898
&& rm -rf /usr/local/bin/dev-mode \
9999
&& rm -rf /usr/local/bin/docker-php-dev-mode \
100100
&& yes | apt-get install make
@@ -113,7 +113,7 @@ RUN touch /.you-are-in-a-wyrihaximus.net-php-docker-image-dev
113113
# Install docker help scripts
114114
COPY src/php/utils/docker/debian/dev-mode /usr/local/bin/dev-mode
115115
COPY src/php/utils/docker/debian/docker-php-dev-mode /usr/local/bin/docker-php-dev-mode
116-
RUN if [ $(php -v | grep "alpha\|beta\|rc" | wc -l) != 0 ] ; then true ; else dev-mode; fi \
116+
RUN if [ $(php -v | grep "alpha\|ALPHA\|beta\|BETA\|rc\|RC" | wc -l) != 0 ] ; then true ; else dev-mode; fi \
117117
&& rm -rf /usr/local/bin/dev-mode \
118118
&& rm -rf /usr/local/bin/docker-php-dev-mode \
119119
&& yes | apt-get install make

Dockerfile-zts-debian

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ RUN touch /.you-are-in-a-wyrihaximus.net-php-docker-image-dev
9696
# Install docker help scripts
9797
COPY src/php/utils/docker/debian/dev-mode /usr/local/bin/dev-mode
9898
COPY src/php/utils/docker/debian/docker-php-dev-mode /usr/local/bin/docker-php-dev-mode
99-
RUN if [ $(php -v | grep "alpha\|beta\|rc" | wc -l) != 0 ] ; then true ; else dev-mode; fi \
99+
RUN if [ $(php -v | grep "alpha\|ALPHA\|beta\|BETA\|rc\|RC" | wc -l) != 0 ] ; then true ; else dev-mode; fi \
100100
&& rm -rf /usr/local/bin/dev-mode \
101101
&& rm -rf /usr/local/bin/docker-php-dev-mode \
102102
&& yes | apt-get install make
@@ -115,7 +115,7 @@ RUN touch /.you-are-in-a-wyrihaximus.net-php-docker-image-dev
115115
# Install docker help scripts
116116
COPY src/php/utils/docker/debian/dev-mode /usr/local/bin/dev-mode
117117
COPY src/php/utils/docker/debian/docker-php-dev-mode /usr/local/bin/docker-php-dev-mode
118-
RUN if [ $(php -v | grep "alpha\|beta\|rc" | wc -l) != 0 ] ; then true ; else dev-mode; fi \
118+
RUN if [ $(php -v | grep "alpha\|ALPHA\|beta\|BETA\|rc\|RC" | wc -l) != 0 ] ; then true ; else dev-mode; fi \
119119
&& rm -rf /usr/local/bin/dev-mode \
120120
&& rm -rf /usr/local/bin/docker-php-dev-mode \
121121
&& yes | apt-get install make

test-nts.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ declare TEST_SUITE
1515

1616
TEST_SUITE="php_$IMAGE_ARCH"
1717

18-
if [[ $DOCKER_TAG == *"-dev"* && $IMAGE_BASE_VERSION != *"alpha"* && $IMAGE_BASE_VERSION != *"beta"* && $IMAGE_BASE_VERSION != *"rc"* ]]; then
18+
if [[ $DOCKER_TAG == *"-dev"* && $IMAGE_BASE_VERSION != *"alpha"* && $IMAGE_BASE_VERSION != *"beta"* && $IMAGE_BASE_VERSION != *"rc"* && $IMAGE_BASE_VERSION != *"ALPHA"* && $IMAGE_BASE_VERSION != *"BETA"* && $IMAGE_BASE_VERSION != *"RC"* ]]; then
1919
TEST_SUITE="php_nts or php_dev"
2020
else
2121
TEST_SUITE="php_nts or php_no_dev and not php_dev"

test-zts.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ declare TEST_SUITE
1515

1616
TEST_SUITE="php_$IMAGE_ARCH"
1717

18-
if [[ $DOCKER_TAG == *"-dev"* && $IMAGE_BASE_VERSION != *"alpha"* && $IMAGE_BASE_VERSION != *"beta"* && $IMAGE_BASE_VERSION != *"rc"* ]]; then
18+
if [[ $DOCKER_TAG == *"-dev"* && $IMAGE_BASE_VERSION != *"alpha"* && $IMAGE_BASE_VERSION != *"beta"* && $IMAGE_BASE_VERSION != *"rc"* && $IMAGE_BASE_VERSION != *"ALPHA"* && $IMAGE_BASE_VERSION != *"BETA"* && $IMAGE_BASE_VERSION != *"RC"* ]]; then
1919
TEST_SUITE="php_zts or php_dev"
2020
else
2121
TEST_SUITE="php_zts or php_no_dev and not php_dev"

0 commit comments

Comments
 (0)