-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43 from ramsey/libsodium-support
Libsodium support
- Loading branch information
Showing
6 changed files
with
181 additions
and
536 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
vendor | ||
vendor | ||
composer.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,31 @@ | ||
language: php | ||
|
||
php: | ||
- 5.6 | ||
- 5.5 | ||
- 5.4 | ||
- 5.3 | ||
- hhvm | ||
sudo: required | ||
|
||
matrix: | ||
include: | ||
- php: 7.0 | ||
env: LIBSODIUM=1 | ||
- php: 5.6 | ||
env: LIBSODIUM=1 | ||
- php: 5.5 | ||
env: LIBSODIUM=1 | ||
- php: 5.4 | ||
env: LIBSODIUM=1 | ||
- php: 5.3 | ||
env: LIBSODIUM=1 | ||
- php: hhvm | ||
env: LIBSODIUM=0 # libsodium extension is not supported by HHVM | ||
|
||
before_install: | ||
- if [[ "$LIBSODIUM" == "1" ]]; then sudo add-apt-repository -y ppa:chris-lea/libsodium; fi | ||
- if [[ "$LIBSODIUM" == "1" ]]; then sudo apt-get -q update; fi | ||
- if [[ "$LIBSODIUM" == "1" ]]; then sudo apt-get -y install libsodium-dev; fi | ||
- if [[ "$LIBSODIUM" == "1" ]]; then pecl install libsodium; fi | ||
|
||
before_script: | ||
- composer install --prefer-source | ||
- travis_retry composer self-update | ||
- travis_retry composer install --prefer-source | ||
|
||
script: vendor/bin/phpunit --configuration phpunit.xml.dist test | ||
script: | ||
- ./vendor/bin/phpunit --verbose |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.