mirror of
https://codeberg.org/demostf/api.git
synced 2026-06-04 02:14:06 +02:00
add basic api tests
This commit is contained in:
parent
64b0aff075
commit
e00e6ece5f
30 changed files with 350 additions and 17 deletions
|
|
@ -19,19 +19,22 @@ env:
|
|||
- DB_PASSWORD=
|
||||
- DB_DATABASE=travis_ci_test
|
||||
- BASE_HOST=example.com
|
||||
- DEMO_ROOT=/tmp/demos
|
||||
|
||||
install:
|
||||
- composer install --no-interaction
|
||||
- npm install
|
||||
|
||||
before_script:
|
||||
- phpenv config-add travis.php.ini
|
||||
- psql -c 'create database travis_ci_test;' -U postgres
|
||||
- wget https://raw.githubusercontent.com/demostf/db/master/schema.sql
|
||||
- psql -U postgres -d travis_ci_test -f schema.sql
|
||||
- echo "error_reporting = E_ALL & ~E_DEPRECATED" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini #random-lib complains about mcrypt
|
||||
|
||||
script:
|
||||
- cd tests
|
||||
- phpunit --coverage-clover coverage.xml --configuration phpunit.xml
|
||||
- phpunit --coverage-clover coverage.xml --configuration test/phpunit.xml
|
||||
- node node_modules/.bin/mocha --recursive
|
||||
|
||||
after_success:
|
||||
- bash <(curl -s https://codecov.io/bash)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue