Skip to content
This repository was archived by the owner on Mar 23, 2024. It is now read-only.

Commit 3b49307

Browse files
committed
🔥
1 parent 7452e9a commit 3b49307

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.travis.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,34 @@ env:
66

77
php:
88
- 7.2
9+
- nightly
910

1011
matrix:
1112
include:
1213
- php: 7.2
1314
env: setup=no_encryption
14-
# - php: 7.2
15-
# env: setup=sodium_ext
15+
- php: 7.2
16+
env: setup=sodium_ext
1617

1718
mysql:
1819
database: dbtest
1920
username: root
2021
encoding: utf8
2122

2223
before_install:
24+
# Manually compile the libsodium library. This sucks, Travis. https://github.com/travis-ci/travis-ci/issues/8863
2325
- |
2426
if [[ $setup = 'sodium_ext' ]]; then
25-
echo "extension=sodium" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini;
27+
git clone -b stable https://github.com/jedisct1/libsodium.git;
28+
cd libsodium && sudo ./configure && sudo make check && sudo make install && cd ..;
2629
fi
2730
2831
install:
32+
- |
33+
if [[ $setup = 'sodium_ext' ]]; then
34+
pecl install libsodium;
35+
echo "extension=sodium.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini;
36+
fi
2937
- curl -o config/cacert.pem https://curl.haxx.se/ca/cacert.pem
3038
- travis_retry composer install --no-interaction --prefer-source
3139
- mysql -e 'create database dbtest;'

0 commit comments

Comments
 (0)