In case you don't have Node.js installed locally use NVM:
$ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.29.0/install.sh | bash $ nvm install v0.12.2 $ nvm use v0.12.2 $ nvm alias default v0.12.2
-
Install dredd locally with
npm install -g dredd@1.0.1, rundredd initand select langaugenodejs</confusion warning> and answer all other questions. -
Edit generated
dredd.ymland change thelanguageline:
language: vendor/bin/dredd-hooks-php- Merge following lines into your
.travis.yml
pre_install:
- npm install -g dredd@1.0.1
- composer require ddelnano/dredd-hooks-php:~1.0.0
before_script:
- dredd- Save, commit and push all of the above
Documentation: