language: php
php:
    - 7.0
    - 5.6

before_install:
    - 'sudo apt-get update'
    - 'sudo apt-get install make build-essential automake php5-dev php-pear'
    - 'git clone git://github.com/jedisct1/libsodium.git'
    - 'cd libsodium'
    - 'git checkout 1.0.4'
    - './autogen.sh'
    - './configure && make check'
    - 'sudo make install'
    - 'cd ..'
    - 'pecl install libsodium'
    - 'echo "extension = libsodium.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini'

install:
    - composer --no-interaction --no-progress install
    - composer show --installed

script: vendor/bin/phpunit

language: php

sudo: required

php:
    - 7.1
    - 7.0
    - 5.6

before_install:
    - 'sudo add-apt-repository -y ppa:chris-lea/libsodium'
    - 'sudo apt-get -q update'
    - 'sudo apt-get -y install libsodium-dev'
    - 'pecl install libsodium'

install:
    - composer --no-interaction --no-progress install
    - composer show --installed

script: vendor/bin/phpunit

Add php 7.1 and simplify libsodium install
Add php 7.1 and simplify libsodium install
