php-json-ld/.travis.yml
David I. Lehn c63a5961fb Add support for normalization test suite.
- Handle rdfn:Urgna2012EvalTest and rdfn:Urdna2015EvalTest.
- Use nquads input format for normalization tests.
- Support normalization test suite format with various tweaks.
  Compacting the data would eliminate most of these changes but can't
  rely on compact to work in the code that tests compact! So hard coded
  fixes are used.
  - Support 'entries' and 'sequence' for tests.
  - Support 'include' as filename without a .jsonld extension.
  - Support 'type' and '@type' as aliases.
  - Support 'id' and '@id' as aliases.
  - Support 'action' and 'input' as aliases.
  - Support 'result' and 'expect' as aliases.
  - No longer strip '#t' prefix from '#tNNN' ids.
  - Default to positive test if nothing specified.
- Add normalization test to travis-ci config.
- Fix container infrastructure flag from 'root' to 'sudo'.
- Update README with new testing info.
2015-10-13 13:38:56 -04:00

19 lines
499 B
YAML

language: php
php:
- 5.3
- 5.4
- 5.5
- 5.6
sudo: false
# download test suite and run tests... submodule? meta testing project with
# all of the reference implementations?
script:
- git clone https://github.com/json-ld/json-ld.org.git _json-ld.org
- phpunit test.php -d ./_json-ld.org/test-suite
- git clone https://github.com/json-ld/normalization.git _normalization
- phpunit test.php -d ./_normalization/tests
notifications:
email:
on_success: change
on_failure: change