Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@
/vendor
/tests/phpunit_report
/docs/build
/docs/source/API/API/cache
/docs/source/API/API/SILEX2/cache
/docs/source/API/API/master/cache
composer.phar
/.phpunit.result.cache
44 changes: 37 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,43 @@
language: php

dist: xenial

before_script:
- sudo apt-get update
- sudo apt-get install -y libfreetype6-dev libjpeg-dev libgif-dev libpng-dev xpdf libexpat-dev gettext zlib1g-dev build-essential
- wget http://www.swftools.org/swftools-0.9.1.tar.gz
- sh -c "tar xzvf swftools-0.9.1.tar.gz && cd swftools-0.9.1 && ./configure && make && sudo make install"
- composer install --dev --prefer-source
# Previously installed xpdf libexpat-dev libgif-dev
- sudo apt-get install -y libfreetype6-dev libjpeg-dev libpng-dev zlib1g-dev gettext build-essential unzip
- wget http://ftp.debian.org/debian/pool/main/g/giflib/libgif4_4.1.6-11+deb8u1_amd64.deb -O ./libgif4_4.deb
- wget http://ftp.debian.org/debian/pool/main/g/giflib/libgif-dev_4.1.6-11+deb8u1_amd64.deb -O ./libgif-dev_4.deb
- sudo apt install -y ./libgif4_4.deb
- sudo apt install -y ./libgif-dev_4.deb
#- wget http://www.swftools.org/swftools-0.9.2.tar.gz
- wget "https://github.com/matthiaskramm/swftools/archive/master.zip" -O swftools.zip
#- sh -c "tar xzvf swftools-0.9.2.tar.gz && cd swftools-0.9.2 && ./configure && make && sudo make install"
# Awoid https://github.com/matthiaskramm/swftools/issues/150 by running make a second time on failure
- sh -c "unzip swftools.zip && cd swftools-master && ./configure && make || make && sudo make install"

install: composer install --no-interaction

script: ./vendor/bin/phpunit

php:
- 5.4
- 5.5
jobs:
allow_failures:
- php: nightly

include:
- stage: "PHPUnit tests"
php: 7.1
name: "PHP 7.1"
- stage: "PHPUnit tests"
php: 7.2
name: "PHP 7.2"
- stage: "PHPUnit tests"
php: 7.3
name: "PHP 7.3"
- stage: "PHPUnit tests"
php: 7.4
name: "PHP 7.4"
- stage: "PHPUnit tests"
php: nightly
install: composer install --no-interaction --ignore-platform-reqs
name: "PHP nightly"
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
CHANGELOG
---------

* 5.0.0 (dd-mm-yyyy)

* Drop PHP 7.0 support and support 7.1+.
* Allow phpunit 7, 8, 9
* Fix PHP "continue" syntax error

* 4.1.0 (25-04-2018)

* Drop PHP 5.x support and support 7.0+.
* Upgrade `alchemy/binary-driver`
* Upgrade `phpunit/phpunit` to 6
* Drop PHP 5.x from the test suite.
* Use `silex/silex` 2.x instead of 1.x
* Use `pimple/pimple` 3.x instead of 1.x

* 0.3.2 (07-11-2017)

* Drop PHP 5.3 from the test suite.
Expand Down
7 changes: 7 additions & 0 deletions buildAPI.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
#!/bin/bash

rm -Rf docs/build/API/API
rm -Rf docs/source/API/API
git add -A docs/
git commit -m "Removed documentation"
composer global require code-lts/doctum:^5.0
/usr/bin/env php $(composer global config home)/vendor/bin/doctum.php update doctum_configuration.php -v
mkdir -p docs/source/API/API
mv docs/build/API/API/* docs/source/API/API/
sh -c "cd docs && make clean && make html"
git add -A docs/
git commit -m "Updated documentation" --amend
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
}
],
"require": {
"php" : ">=5.3.3",
"alchemy/binary-driver" : "~1.5",
"pimple/pimple" : "~1.0"
"php" : "^7.1 || ^8.0",
"alchemy/binary-driver" : "~4.1",
"pimple/pimple" : "~3.0"
},
"require-dev": {
"phpunit/phpunit" : "~3.7",
"silex/silex" : "~1.0"
"phpunit/phpunit" : "^7.0 || ^8.0 || ^9.0",
"silex/silex" : "~2.0"
},
"autoload": {
"psr-0": {
Expand Down
Loading