mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2024-10-01 01:26:10 -04:00
31 lines
787 B
YAML
31 lines
787 B
YAML
language: php
|
|
sudo: false
|
|
php:
|
|
- '5.4'
|
|
- '5.5'
|
|
- '5.6'
|
|
- '7.0'
|
|
- '7.1'
|
|
- '7.2'
|
|
|
|
# as this is a php project, node.js v4 (for JS unit testing) isn't installed
|
|
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 4
|
|
|
|
before_script:
|
|
- composer config -g github-oauth.github.com "$GITHUB_TOKEN"
|
|
- composer install -n
|
|
- npm install -g mocha
|
|
- cd js
|
|
- npm install jsverify jsdom@9 jsdom-global@2
|
|
- cd ..
|
|
|
|
script:
|
|
- cd tst && ../vendor/bin/phpunit
|
|
- cd ../js && mocha
|
|
|
|
after_script:
|
|
- cd ..
|
|
- vendor/bin/codacycoverage clover tst/log/coverage-clover.xml
|
|
- vendor/bin/test-reporter --coverage-report tst/log/coverage-clover.xml
|