2016-05-22 17:09:00 +02:00
|
|
|
language: php
|
|
|
|
sudo: false
|
|
|
|
php:
|
2016-07-05 17:01:26 +02:00
|
|
|
- 5.5
|
|
|
|
- 5.6
|
|
|
|
- 7.0
|
2017-02-12 14:57:20 +01:00
|
|
|
|
|
|
|
env:
|
|
|
|
- TRAVIS_NODE_VERSION="4"
|
|
|
|
|
|
|
|
install:
|
|
|
|
- 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 $TRAVIS_NODE_VERSION
|
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
|
|
|
|
- npm install jsverify jsdom jsdom-global
|
|
|
|
- cd ..
|
2016-07-05 17:01:26 +02:00
|
|
|
|
2016-05-22 17:09:00 +02:00
|
|
|
script:
|
2016-07-11 15:52:08 +02:00
|
|
|
- cd tst && 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
|