7038fd5712
This reverts commit 81194f6bd6
.
Found that the trusty based php 7.4 in TravisCI doesn't include the GD module, that we need, plus there is an issue with the Filter::slowEquals() function that only remains for php 5.5 support that doesn't yet contain hash_compare().
38 lines
923 B
YAML
38 lines
923 B
YAML
language: php
|
|
sudo: false
|
|
# only needed for PHP 5.5 support as of 2019-07
|
|
dist: trusty
|
|
php:
|
|
- '5.5'
|
|
- '5.6'
|
|
- '7.0'
|
|
- '7.1'
|
|
- '7.2'
|
|
- '7.3'
|
|
|
|
# as this is a php project, node.js (for JS unit testing) isn't installed
|
|
install:
|
|
- if [ ! -d "$HOME/.nvm" ]; then mkdir -p $HOME/.nvm && curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | NVM_METHOD=script bash; fi
|
|
- source ~/.nvm/nvm.sh && nvm install --lts
|
|
|
|
before_script:
|
|
- rm composer.lock
|
|
- composer install -n
|
|
- npm install -g mocha
|
|
- cd js && npm install
|
|
|
|
script:
|
|
- mocha
|
|
- cd ../tst && ../vendor/bin/phpunit
|
|
|
|
after_script:
|
|
- ../vendor/bin/test-reporter --coverage-report log/coverage-clover.xml
|
|
- cd .. && vendor/bin/codacycoverage clover tst/log/coverage-clover.xml
|
|
|
|
cache:
|
|
directories:
|
|
- $HOME/.composer/cache/files
|
|
- $HOME/.composer/cache/vcs
|
|
- $HOME/.nvm
|
|
- $HOME/.npm
|
|
- js/node_modules
|