minor #28866 [travis] build libsodium only if it's not already enabled (nicolas-grekas)
This PR was merged into the 3.4 branch.
Discussion
----------
[travis] build libsodium only if it's not already enabled
| Q | A
| ------------- | ---
| Branch? | 3.4
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | -
| License | MIT
| Doc PR | -
Should make the CI green.
Commits
-------
24a00d84b0
[travis] build libsodium only if it's not already enabled
This commit is contained in:
commit
7e16a0dfb8
12
.travis.yml
12
.travis.yml
@ -173,13 +173,15 @@ before_install:
|
||||
[[ -e $ext_cache ]] || (tfold ext.symfony_debug "cd src/Symfony/Component/Debug/Resources/ext && phpize && ./configure && make && mv modules/symfony_debug.so $ext_cache && phpize --clean")
|
||||
echo extension = $ext_cache >> $INI
|
||||
elif [[ $PHP = 7.* ]]; then
|
||||
# install libsodium
|
||||
sudo add-apt-repository ppa:ondrej/php -y
|
||||
sudo apt-get update -q
|
||||
sudo apt-get install libsodium-dev -y
|
||||
if ! php --ri sodium > /dev/null; then
|
||||
# install libsodium
|
||||
sudo add-apt-repository ppa:ondrej/php -y
|
||||
sudo apt-get update -q
|
||||
sudo apt-get install libsodium-dev -y
|
||||
tfold ext.libsodium tpecl libsodium sodium.so $INI
|
||||
fi
|
||||
|
||||
tfold ext.apcu tpecl apcu-5.1.6 apcu.so $INI
|
||||
tfold ext.libsodium tpecl libsodium sodium.so $INI
|
||||
tfold ext.mongodb tpecl mongodb-1.5.0 mongodb.so $INI
|
||||
fi
|
||||
done
|
||||
|
Reference in New Issue
Block a user