block-explorer/.travis.yml

34 lines
1 KiB
YAML
Raw Normal View History

2020-01-11 01:14:47 -05:00
os: linux
dist: xenial
2017-06-13 19:54:56 +01:00
language: php
2020-01-11 01:14:47 -05:00
services:
- docker
2017-06-13 19:54:56 +01:00
2020-01-11 01:14:47 -05:00
cache:
directories:
- $HOME/.composer/cache/files
env:
2020-01-11 01:22:34 -05:00
- DATABASE_URL="lbry:lbry@tcp(localhost:15500)/chainquery"
- DATABASE_TEST_URL="lbry:lbry@tcp(localhost:15500)/chainquery"
2017-06-13 19:54:56 +01:00
before_script:
2020-01-11 01:14:47 -05:00
- composer require cakephp/cakephp-codesniffer:~2.1
- composer install
- composer require phpunit/phpunit:"^5.7|^6.0"
- composer run-script post-install-cmd --no-interaction
- echo 'lbrycrdurl="rpc://lbry:lbry@lbrycrd:29245"' > chainqueryconfig.toml
- echo 'mysqldsn="lbry:lbry@tcp(mysql:3306)/chainquery"' >> chainqueryconfig.toml
- echo 'apimysqldsn="lbry:lbry@tcp(mysql:3306)/chainquery"' >> chainqueryconfig.toml
- echo 'blockchainname="lbrycrd_regtest"' >> chainqueryconfig.toml
- docker-compose up -d
- sleep 5
2017-06-13 19:54:56 +01:00
script:
2020-01-11 01:14:47 -05:00
- vendor/bin/phpunit
- vendor/bin/phpcs -p --extensions=php --standard=vendor/cakephp/cakephp-codesniffer/CakePHP ./src ./tests ./config ./webroot
2017-06-13 19:54:56 +01:00
notifications:
email: false