2016-05-22 23:09:00 +08:00
|
|
|
language: php
|
|
|
|
sudo: false
|
|
|
|
php:
|
2017-02-12 22:03:08 +08:00
|
|
|
- '5.4'
|
|
|
|
- '5.5'
|
|
|
|
- '5.6'
|
|
|
|
- '7.0'
|
|
|
|
- '7.1'
|
2017-12-03 22:39:05 +08:00
|
|
|
- '7.2'
|
2017-02-12 21:57:20 +08:00
|
|
|
|
2017-03-25 16:06:04 +08:00
|
|
|
# as this is a php project, node.js v4 (for JS unit testing) isn't installed
|
2017-02-12 21:57:20 +08:00
|
|
|
install:
|
2018-01-02 14:19:07 +08:00
|
|
|
- if [ ! -d "$HOME/.nvm" ]; then mkdir -p $HOME/.nvm && curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | NVM_METHOD=script bash; fi
|
2019-02-23 14:06:39 +08:00
|
|
|
- source ~/.nvm/nvm.sh && nvm install 10
|
2016-07-05 23:01:26 +08:00
|
|
|
|
|
|
|
before_script:
|
2016-07-05 23:52:32 +08:00
|
|
|
- composer install -n
|
2017-02-12 21:30:41 +08:00
|
|
|
- npm install -g mocha
|
2018-04-29 15:40:44 +08:00
|
|
|
- cd js && npm install jsverify jsdom@9 jsdom-global@2 mime-types
|
2016-07-05 23:01:26 +08:00
|
|
|
|
2016-05-22 23:09:00 +08:00
|
|
|
script:
|
2018-01-02 16:38:28 +08:00
|
|
|
- mocha
|
|
|
|
- cd ../tst && ../vendor/bin/phpunit
|
2016-07-05 23:01:26 +08:00
|
|
|
|
|
|
|
after_script:
|
2018-01-02 16:38:28 +08:00
|
|
|
- ../vendor/bin/test-reporter --coverage-report log/coverage-clover.xml
|
2018-01-06 15:19:00 +08:00
|
|
|
- cd .. && vendor/bin/codacycoverage clover tst/log/coverage-clover.xml
|
2018-01-01 16:31:48 +08:00
|
|
|
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/.composer/cache/files
|
|
|
|
- $HOME/.composer/cache/vcs
|
2018-01-02 14:14:58 +08:00
|
|
|
- $HOME/.nvm
|
2018-01-01 16:31:48 +08:00
|
|
|
- $HOME/.npm
|
|
|
|
- js/node_modules
|