bintzwing/.travis.yml

36 lines
862 B
YAML
Raw Normal View History

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