2016-05-22 17:09:00 +02:00
|
|
|
language: php
|
|
|
|
sudo: false
|
|
|
|
php:
|
2017-02-12 15:03:08 +01:00
|
|
|
- '5.4'
|
|
|
|
- '5.5'
|
|
|
|
- '5.6'
|
|
|
|
- '7.0'
|
|
|
|
- '7.1'
|
2017-02-12 14:57:20 +01:00
|
|
|
|
2017-03-25 09:06:04 +01:00
|
|
|
# as this is a php project, node.js v4 (for JS unit testing) isn't installed
|
2017-02-12 14:57:20 +01:00
|
|
|
install:
|
2018-01-02 07:19:07 +01: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
|
2018-01-02 07:14:58 +01:00
|
|
|
- source ~/.nvm/nvm.sh && nvm install 4
|
2016-07-05 17:01:26 +02:00
|
|
|
|
|
|
|
before_script:
|
2016-07-05 17:52:32 +02:00
|
|
|
- composer install -n
|
2017-02-12 14:30:41 +01:00
|
|
|
- npm install -g mocha
|
|
|
|
- cd js
|
2017-05-22 22:34:12 +02:00
|
|
|
- npm install jsverify jsdom@9 jsdom-global@2
|
2017-02-12 14:30:41 +01:00
|
|
|
- cd ..
|
2016-07-05 17:01:26 +02:00
|
|
|
|
2016-05-22 17:09:00 +02:00
|
|
|
script:
|
2017-03-12 14:38:49 +01:00
|
|
|
- cd tst && ../vendor/bin/phpunit
|
2017-02-12 14:30:41 +01:00
|
|
|
- cd ../js && mocha
|
2016-07-05 17:01:26 +02:00
|
|
|
|
|
|
|
after_script:
|
2016-07-09 13:34:07 +02:00
|
|
|
- cd ..
|
|
|
|
- vendor/bin/codacycoverage clover tst/log/coverage-clover.xml
|
|
|
|
- vendor/bin/test-reporter --coverage-report tst/log/coverage-clover.xml
|
2018-01-01 09:31:48 +01:00
|
|
|
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/.composer/cache/files
|
|
|
|
- $HOME/.composer/cache/vcs
|
2018-01-02 07:14:58 +01:00
|
|
|
- $HOME/.nvm
|
2018-01-01 09:31:48 +01:00
|
|
|
- $HOME/.npm
|
|
|
|
- js/node_modules
|