language: php

sudo: true
dist: trusty

php:
    - 7.1.0
    - 7.0

install:
    - sudo apt-get -qq update
    - sudo apt-get install -y asciidoc libarchive-dev curl libgpgme11-dev
    - curl -O https://sources.archlinux.org/other/pacman/pacman-5.0.1.tar.gz
    - tar -xzvf pacman-5.0.1.tar.gz
    - cd pacman-5.0.1 && ./configure --prefix=/usr && make && sudo make install
    - cd ..

script:
    - export TEST_PHP_EXECUTABLE=`which php`
    - phpize
    - ./configure --with-alpm && make
    - php run-tests.php -d extension=alpm.so -d extension_dir=modules -n ./tests/*.phpt
    - for i in `ls tests/*.out 2> /dev/null`; do echo "-- START ${i}"; cat $i; echo "-- END"; done

language: php

sudo: true
dist: trusty

php:
    - 7.1
    - 7.0
    - 5.6
    - 5.5
    - 5.4
    - 5.3

install:
    - sudo apt-get -qq update
    - sudo apt-get install -y asciidoc libarchive-dev curl libgpgme11-dev
    - curl -O https://sources.archlinux.org/other/pacman/pacman-5.0.1.tar.gz
    - tar -xzvf pacman-5.0.1.tar.gz
    - cd pacman-5.0.1 && ./configure --prefix=/usr && make && sudo make install
    - cd ..

script:
    - export TEST_PHP_EXECUTABLE=`which php`
    - phpize
    - ./configure --with-alpm && make
    - php run-tests.php -d extension=alpm.so -d extension_dir=modules -n ./tests/*.phpt
    - for i in `ls tests/*.out 2> /dev/null`; do echo "-- START ${i}"; cat $i; echo "-- END"; done

Add PHP5 versions to TravisCI
Add PHP5 versions to TravisCI

Now, this should make an otherwise boring day fun to find out what the heck is
wrong with the PHP<5.6 builds...

Signed-off-by: Mark Weiman <5ec563e4a04e792e739af320cc9c0c01664c7306@markzz.com>
