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-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:
|
2017-02-12 22:02:29 +08:00
|
|
|
- rm -rf ~/.nvm && git clone https://github.com/creationix/nvm.git ~/.nvm && (cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`) && source ~/.nvm/nvm.sh && nvm install 4
|
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
|
|
|
|
- cd js
|
2017-05-23 04:34:12 +08:00
|
|
|
- npm install jsverify jsdom@9 jsdom-global@2
|
2017-02-12 21:30:41 +08:00
|
|
|
- cd ..
|
2016-07-05 23:01:26 +08:00
|
|
|
|
2016-05-22 23:09:00 +08:00
|
|
|
script:
|
2017-03-12 21:38:49 +08:00
|
|
|
- cd tst && ../vendor/bin/phpunit
|
2017-02-12 21:30:41 +08:00
|
|
|
- cd ../js && mocha
|
2016-07-05 23:01:26 +08:00
|
|
|
|
|
|
|
after_script:
|
2016-07-09 19:34:07 +08:00
|
|
|
- cd ..
|
|
|
|
- vendor/bin/codacycoverage clover tst/log/coverage-clover.xml
|
|
|
|
- vendor/bin/test-reporter --coverage-report tst/log/coverage-clover.xml
|