ctrlv-privatebin/.travis.yml

40 lines
933 B
YAML
Raw Normal View History

2016-05-22 17:09:00 +02:00
language: php
sudo: false
# only needed for PHP 5.5 support as of 2019-07
dist: trusty
2016-05-22 17:09:00 +02:00
php:
- '5.5'
- '5.6'
- '7.0'
- '7.1'
2017-12-03 15:39:05 +01:00
- '7.2'
- '7.3'
2020-02-05 16:50:08 +01:00
- '7.4'
# as this is a php project, node.js (for JS unit testing) isn't installed
install:
- if [ ! -d "$HOME/.nvm" ]; then mkdir -p $HOME/.nvm && curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | NVM_METHOD=script bash; fi
- source ~/.nvm/nvm.sh && nvm install --lts
before_script:
- rm composer.lock
- composer install -n
- npm install -g mocha
- cd js && npm install
2016-05-22 17:09:00 +02:00
script:
2018-01-02 09:38:28 +01:00
- mocha
- cd ../tst && ../vendor/bin/phpunit
after_script:
2018-01-02 09:38:28 +01:00
- ../vendor/bin/test-reporter --coverage-report log/coverage-clover.xml
- cd .. && vendor/bin/codacycoverage clover tst/log/coverage-clover.xml
cache:
directories:
- $HOME/.composer/cache/files
- $HOME/.composer/cache/vcs
2018-01-02 07:14:58 +01:00
- $HOME/.nvm
- $HOME/.npm
- js/node_modules