php - What's the best way to install a PECL extension (libsodium) for unit testing with Travis CI? -


i'm trying add continuous integration project called halite, uses libsodium encrypt cookies before storing them on end-user's device.

however, can't seem travis.yml right. these issues encountered:

  1. adding extension=libsodium.so did not lead extension being loaded (thus, class sodium not found fatal errors).
  2. changing extension=/path/to/libsodium.so caused fatal error phpapi versions mismatched.

i can run tests locally, i'd use travis ci diagnose issues in pull requests.

run pecl install without sudo. pecl should automatically enable extension shouldn't need config file , extension= line enable it.


Comments

Popular posts from this blog

python - Healpy: From Data to Healpix map -

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -