paste.libre-service.eu-priv.../.travis.yml

36 lines
842 B
YAML
Raw Normal View History

2016-05-22 17:09:00 +02:00
language: php
sudo: false
php:
- '5.4'
- '5.5'
- '5.6'
- '7.0'
- '7.1'
# as this is a php project, node.js v4 (for JS unit testing) isn't installed
install:
2017-02-12 15:02:29 +01: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
before_script:
- composer install -n
- npm install -g mocha
- cd js
- npm install jsverify jsdom@9 jsdom-global@2
- cd ..
2016-05-22 17:09:00 +02:00
script:
- cd tst && ../vendor/bin/phpunit
- cd ../js && mocha
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
cache:
directories:
- $HOME/.composer/cache/files
- $HOME/.composer/cache/vcs
- $HOME/.npm
- js/node_modules