Skip to content

Commit

Permalink
测试
Browse files Browse the repository at this point in the history
  • Loading branch information
midoks committed Jun 27, 2022
1 parent d7250eb commit 596769e
Show file tree
Hide file tree
Showing 11 changed files with 55 additions and 11 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/python-app-php53.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,12 @@ jobs:
sudo bash scripts/install_dev.sh
- name: Install PHP53
run: |
SYS_MAKEJN="-j4"
SYS_MAKEJN="-j8"
cd /www/server/mdserver-web/plugins/php && sudo bash install.sh install 53
- name: Install PHP54
run: |
SYS_MAKEJN="-j8"
cd /www/server/mdserver-web/plugins/php && sudo bash install.sh install 54
- name: Start DEBUG
run: |
gunicorn -c setting.py app:app
Expand Down
6 changes: 5 additions & 1 deletion plugins/php/versions/54/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ else
OPTIONS="${OPTIONS} --with-curl"
fi

# 加快测试速度 For Github Action
MAKEJN='${SYS_MAKEJN:+"-j1"}'
echo "SYS_MAKEJN:$MAKEJN"

if [ ! -d $serverPath/php/${PHP_VER} ];then
cd $sourcePath/php/php${PHP_VER} && ./configure \
--prefix=$serverPath/php/${PHP_VER} \
Expand All @@ -69,7 +73,7 @@ if [ ! -d $serverPath/php/${PHP_VER} ];then
$OPTIONS \
--enable-fpm

make clean && make
make clean && make $MAKEJN

#debian11,没有生成php54 man
if [ ! -f sapi/cli/php.1 ];then
Expand Down
7 changes: 6 additions & 1 deletion plugins/php/versions/55/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ else
OPTIONS="${OPTIONS} --with-curl"
fi

# 加快测试速度 For Github Action
MAKEJN='${SYS_MAKEJN:+"-j1"}'
echo "SYS_MAKEJN:$MAKEJN"


if [ ! -d $serverPath/php/55 ];then
cd $sourcePath/php/php${PHP_VER} && ./configure \
--prefix=$serverPath/php/55 \
Expand All @@ -68,7 +73,7 @@ if [ ! -d $serverPath/php/55 ];then
--disable-fileinfo \
$OPTIONS \
--enable-fpm
make clean && make && make install && make clean
make clean && make $MAKEJN && make install && make clean
fi

#------------------------ install end ------------------------------------#
Expand Down
6 changes: 5 additions & 1 deletion plugins/php/versions/56/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ else
OPTIONS="${OPTIONS} --with-curl"
fi

# 加快测试速度 For Github Action
MAKEJN='${SYS_MAKEJN:+"-j1"}'
echo "SYS_MAKEJN:$MAKEJN"

if [ ! -d $serverPath/php/56 ];then
cd $sourcePath/php/php${PHP_VER} && ./configure \
--prefix=$serverPath/php/56 \
Expand All @@ -70,7 +74,7 @@ if [ ! -d $serverPath/php/56 ];then
--disable-fileinfo \
$OPTIONS \
--enable-fpm
make clean && make && make install && make clean
make clean && make $MAKEJN && make install && make clean
fi

#------------------------ install end ------------------------------------#
Expand Down
7 changes: 6 additions & 1 deletion plugins/php/versions/70/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ else
OPTIONS="${OPTIONS} --with-curl"
fi


# 加快测试速度 For Github Action
MAKEJN='${SYS_MAKEJN:+"-j1"}'
echo "SYS_MAKEJN:$MAKEJN"

if [ ! -d $serverPath/php/70 ];then
cd $sourcePath/php/php${PHP_VER} && ./configure \
--prefix=$serverPath/php/70 \
Expand All @@ -67,7 +72,7 @@ if [ ! -d $serverPath/php/70 ];then
--disable-fileinfo \
$OPTIONS \
--enable-fpm
make clean && make && make install && make clean
make clean && make $MAKEJN && make install && make clean
fi

#------------------------ install end ------------------------------------#
Expand Down
6 changes: 5 additions & 1 deletion plugins/php/versions/71/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ else
OPTIONS="${OPTIONS} --with-curl"
fi

# 加快测试速度 For Github Action
MAKEJN='${SYS_MAKEJN:+"-j1"}'
echo "SYS_MAKEJN:$MAKEJN"

if [ ! -d $serverPath/php/71 ];then
cd $sourcePath/php/php${PHP_VER} && ./configure \
--prefix=$serverPath/php/71 \
Expand All @@ -66,7 +70,7 @@ if [ ! -d $serverPath/php/71 ];then
--disable-fileinfo \
$OPTIONS \
--enable-fpm
make clean && make && make install && make clean
make clean && make $MAKEJN && make install && make clean
fi

#------------------------ install end ------------------------------------#
Expand Down
6 changes: 5 additions & 1 deletion plugins/php/versions/72/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ else
OPTIONS="${OPTIONS} --with-curl"
fi

# 加快测试速度 For Github Action
MAKEJN='${SYS_MAKEJN:+"-j1"}'
echo "SYS_MAKEJN:$MAKEJN"

if [ ! -d $serverPath/php/72 ];then
cd $sourcePath/php/php${PHP_VER} && ./configure \
--prefix=$serverPath/php/72 \
Expand All @@ -67,7 +71,7 @@ if [ ! -d $serverPath/php/72 ];then
--disable-fileinfo \
$OPTIONS \
--enable-fpm
make clean && make && make install && make clean
make clean && make $MAKEJN && make install && make clean
fi

#------------------------ install end ------------------------------------#
Expand Down
5 changes: 4 additions & 1 deletion plugins/php/versions/73/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ else
OPTIONS="${OPTIONS} --with-libzip=${serverPath}/lib/libzip"
fi

# 加快测试速度 For Github Action
MAKEJN='${SYS_MAKEJN:+"-j1"}'
echo "SYS_MAKEJN:$MAKEJN"

if [ ! -d $serverPath/php/73 ];then
cd $sourcePath/php/php${PHP_VER} && ./configure \
Expand All @@ -72,7 +75,7 @@ if [ ! -d $serverPath/php/73 ];then
--disable-fileinfo \
$OPTIONS \
--enable-fpm
make clean && make && make install && make clean
make clean && make $MAKEJN && make install && make clean
fi

#------------------------ install end ------------------------------------#
Expand Down
6 changes: 5 additions & 1 deletion plugins/php/versions/74/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ else
fi


# 加快测试速度 For Github Action
MAKEJN='${SYS_MAKEJN:+"-j1"}'
echo "SYS_MAKEJN:$MAKEJN"

echo "$sourcePath/php/php${PHP_VER}"

if [ ! -d $serverPath/php/${PHP_VER} ];then
Expand All @@ -79,7 +83,7 @@ if [ ! -d $serverPath/php/${PHP_VER} ];then
--disable-fileinfo \
$OPTIONS \
--enable-fpm
make && make install
make $MAKEJN && make install && make clean
fi
#------------------------ install end ------------------------------------#
}
Expand Down
5 changes: 4 additions & 1 deletion plugins/php/versions/80/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ else
OPTIONS="${OPTIONS} --with-curl"
fi

# 加快测试速度 For Github Action
MAKEJN='${SYS_MAKEJN:+"-j1"}'
echo "SYS_MAKEJN:$MAKEJN"

echo "$sourcePath/php/php${PHP_VER}"

Expand Down Expand Up @@ -79,7 +82,7 @@ if [ ! -d $serverPath/php/${PHP_VER} ];then
--disable-fileinfo \
$OPTIONS \
--enable-fpm
make clean && make && make install && make clean
make clean && make $MAKEJN && make install && make clean
fi
#------------------------ install end ------------------------------------#
}
Expand Down
6 changes: 5 additions & 1 deletion plugins/php/versions/81/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ else
fi


# 加快测试速度 For Github Action
MAKEJN='${SYS_MAKEJN:+"-j1"}'
echo "SYS_MAKEJN:$MAKEJN"

echo "$sourcePath/php/php${PHP_VER}"

if [ ! -d $serverPath/php/${PHP_VER} ];then
Expand All @@ -83,7 +87,7 @@ if [ ! -d $serverPath/php/${PHP_VER} ];then
--disable-fileinfo \
$OPTIONS \
--enable-fpm
make clean && make && make install && make clean
make clean && make $MAKEJN && make install && make clean
fi
#------------------------ install end ------------------------------------#
}
Expand Down

0 comments on commit 596769e

Please sign in to comment.