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 12
12
before_install :
13
13
- sudo rm -rf /var/lib/apt/lists/lock /var/cache/apt/archives/lock /var/lib/dpkg/lock
14
14
- 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
16
17
- sudo ln -s /usr/include/x86_64-linux-gnu/curl/ /usr/local/include
17
18
- command -v expect || sudo apt-get install expect
18
19
- |
38
39
- sudo rm -rf /var/lib/apt/lists/lock /var/cache/apt/archives/lock /var/lib/dpkg/lock
39
40
- sudo apt-get update
40
41
- 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
41
43
- sudo ln -s /usr/include/x86_64-linux-gnu/curl/ /usr/local/include
42
44
- command -v expect || sudo apt-get install expect
43
45
- |
60
62
before_install :
61
63
- sudo rm -rf /var/lib/apt/lists/lock /var/cache/apt/archives/lock /var/lib/dpkg/lock
62
64
- sudo apt-get update
65
+ - if [[ $VERSION =~ ^8.1 ]]; then sudo apt-get -y argon2 libargon2-0 libargon2-0-dev; fi
63
66
- command -v expect || sudo apt-get install expect
64
67
- |
65
68
if ! command -v phpenv; then
Original file line number Diff line number Diff line change @@ -19,6 +19,10 @@ make test
19
19
make install PREFIX=$LIBARGON2_INSTALL_DIR
20
20
popd
21
21
22
+
22
23
# 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