File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 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 - |
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 - |
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
Original file line number Diff line number Diff line change @@ -19,6 +19,10 @@ make test
1919make install PREFIX=$LIBARGON2_INSTALL_DIR
2020popd
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
You can’t perform that action at this time.
0 commit comments