Skip to content

Commit d7d62ee

Browse files
committed
Adding support to PHP 8.1, fixing argon2 for bionic and xenial
1 parent 6a259b8 commit d7d62ee

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ jobs:
1212
before_install:
1313
- sudo rm -rf /var/lib/apt/lists/lock /var/cache/apt/archives/lock /var/lib/dpkg/lock
1414
- sudo apt-get update
15-
- sudo apt-get -y install libcurl4-openssl-dev argon2 libargon2-0 libargon2-0-dev
15+
- sudo apt-get -y install libcurl4-openssl-dev
16+
- if [[ $VERSION =~ ^8.1 ]]; then sudo apt-get -y argon2 libargon2-0 libargon2-0-dev; fi
1617
- sudo ln -s /usr/include/x86_64-linux-gnu/curl/ /usr/local/include
1718
- command -v expect || sudo apt-get install expect
1819
- |
@@ -38,6 +39,7 @@ jobs:
3839
- sudo rm -rf /var/lib/apt/lists/lock /var/cache/apt/archives/lock /var/lib/dpkg/lock
3940
- sudo apt-get update
4041
- sudo apt-get -y install libcurl4-openssl-dev
42+
- if [[ $VERSION =~ ^8.1 ]]; then sudo apt-get -y argon2 libargon2-0 libargon2-0-dev; fi
4143
- sudo ln -s /usr/include/x86_64-linux-gnu/curl/ /usr/local/include
4244
- command -v expect || sudo apt-get install expect
4345
- |
@@ -60,6 +62,7 @@ jobs:
6062
before_install:
6163
- sudo rm -rf /var/lib/apt/lists/lock /var/cache/apt/archives/lock /var/lib/dpkg/lock
6264
- sudo apt-get update
65+
- if [[ $VERSION =~ ^8.1 ]]; then sudo apt-get -y argon2 libargon2-0 libargon2-0-dev; fi
6366
- command -v expect || sudo apt-get install expect
6467
- |
6568
if ! command -v phpenv; then

bin/install-password-argon2

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ make test
1919
make install PREFIX=$LIBARGON2_INSTALL_DIR
2020
popd
2121

22+
2223
# add the option in custom_configure_options
23-
#echo "--with-password-argon2=$LIBARGON2_INSTALL_DIR" >> $TRAVIS_BUILD_DIR/custom_configure_options
24-
echo "--with-password-argon2" >> $TRAVIS_BUILD_DIR/custom_configure_options
24+
if [[ ! $VERSION =~ ^master$ ]] && [[ "$(printf "7.4\n$VERSION" | sort -V | head -n1)" < "7.4" ]]; then
25+
echo "--with-password-argon2=$LIBARGON2_INSTALL_DIR" >> $TRAVIS_BUILD_DIR/custom_configure_options
26+
else
27+
echo "--with-password-argon2" >> $TRAVIS_BUILD_DIR/custom_configure_options
28+
fi

0 commit comments

Comments
 (0)