aboutsummaryrefslogtreecommitdiffstats
path: root/posts
diff options
context:
space:
mode:
authorFran├žois Kooman <fkooman@tuxed.net>2017-01-25 12:40:42 +0100
committerFran├žois Kooman <fkooman@tuxed.net>2017-01-25 12:40:42 +0100
commita28dfdc0096b7be53c12919db1a40fc80a4b00fc (patch)
tree9c9f3aa26bf0de8f47650365b4e7472d0e220252 /posts
parent6609a4246896a45aec1e23dc20e2c02fc12c27ba (diff)
downloadwww.tuxed.net-a28dfdc0096b7be53c12919db1a40fc80a4b00fc.zip
www.tuxed.net-a28dfdc0096b7be53c12919db1a40fc80a4b00fc.tar.gz
www.tuxed.net-a28dfdc0096b7be53c12919db1a40fc80a4b00fc.tar.xz
add new post
Diffstat (limited to 'posts')
-rw-r--r--posts/libsodium-php-in-travis-ci.md31
1 files changed, 31 insertions, 0 deletions
diff --git a/posts/libsodium-php-in-travis-ci.md b/posts/libsodium-php-in-travis-ci.md
new file mode 100644
index 0000000..c540fa9
--- /dev/null
+++ b/posts/libsodium-php-in-travis-ci.md
@@ -0,0 +1,31 @@
+---
+title: Using libsodium-php in Travis-CI
+published: 2017-01-25
+---
+
+For my OAuth 2.0 server I needed to be able to use
+[libsodium](https://github.com/jedisct1/libsodium) in PHP, unfortunately the
+images on Travis-CI are still based on Ubuntu _precise_, or if you want
+_trusty_, but they do not contain `libsodium-dev` which would be needed to
+install the PECL module `libsodium-php`.
+
+So, below you'll find my `.travis.yml` that installs both `libsodium-dev` from
+a PPA and builds the PECL module:
+
+ language: php
+ sudo: required
+ php:
+ - 5.4
+ - 5.5
+ - 5.6
+ - 7.0
+ - 7.1
+ before_install:
+ - sudo add-apt-repository ppa:chris-lea/libsodium -y
+ - sudo apt-get update -q
+ - sudo apt-get install libsodium-dev -y
+ before_script:
+ - pecl install libsodium
+ - composer install
+
+ script: phpunit --coverage-text tests