2016-05-22 11:09:00 -04:00
|
|
|
language: php
|
|
|
|
sudo: false
|
2020-01-11 07:30:14 -05:00
|
|
|
# only needed for PHP 5.5 support as of 2019-07
|
|
|
|
dist: trusty
|
2016-05-22 11:09:00 -04:00
|
|
|
php:
|
2017-02-12 09:03:08 -05:00
|
|
|
- '5.4'
|
|
|
|
- '5.5'
|
|
|
|
- '5.6'
|
|
|
|
- '7.0'
|
|
|
|
- '7.1'
|
2017-12-03 09:39:05 -05:00
|
|
|
- '7.2'
|
2020-01-11 07:28:48 -05:00
|
|
|
- '7.3'
|
2017-02-12 08:57:20 -05:00
|
|
|
|
2020-01-11 07:28:48 -05:00
|
|
|
# as this is a php project, node.js (for JS unit testing) isn't installed
|
2017-02-12 08:57:20 -05:00
|
|
|
install:
|
2020-01-11 07:28:48 -05:00
|
|
|
- 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
|
2020-01-11 07:24:16 -05:00
|
|
|
- source ~/.nvm/nvm.sh && nvm install --lts
|
2016-07-05 11:01:26 -04:00
|
|
|
|
|
|
|
before_script:
|
2016-07-05 11:52:32 -04:00
|
|
|
- composer install -n
|
2017-02-12 08:30:41 -05:00
|
|
|
- npm install -g mocha
|
2020-01-11 07:24:16 -05:00
|
|
|
- cd js && npm install
|
2016-07-05 11:01:26 -04:00
|
|
|
|
2016-05-22 11:09:00 -04:00
|
|
|
script:
|
2018-01-02 03:38:28 -05:00
|
|
|
- mocha
|
|
|
|
- cd ../tst && ../vendor/bin/phpunit
|
2016-07-05 11:01:26 -04:00
|
|
|
|
|
|
|
after_script:
|
2018-01-02 03:38:28 -05:00
|
|
|
- ../vendor/bin/test-reporter --coverage-report log/coverage-clover.xml
|
2018-01-06 02:19:00 -05:00
|
|
|
- cd .. && vendor/bin/codacycoverage clover tst/log/coverage-clover.xml
|
2018-01-01 03:31:48 -05:00
|
|
|
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/.composer/cache/files
|
|
|
|
- $HOME/.composer/cache/vcs
|
2018-01-02 01:14:58 -05:00
|
|
|
- $HOME/.nvm
|
2018-01-01 03:31:48 -05:00
|
|
|
- $HOME/.npm
|
|
|
|
- js/node_modules
|