- Go to the Apiary.io and create new project,
for example
https://app.apiary.io/githubtest5/tests/runs#tutorial
- Go to the Tutorial tab
and find your
apiaryApiKey
andapiaryApiName
. Skip other instructions on the page.
- Go to the Tutorial tab
and find your
- Setup a new token for the test goals with scopes: gist, user:email. Do not forget to copy new token before closing tab.
- Checkout this repo to some folder
- Look into github-api.md. You can copy it into your https://app.apiary.io/ Editor to play online.
- Put your Apiary parameters and GitHub token below and run commands:
vagrant box update
DREDD_GITHUB_TEST_PATH=<path-to-dir-with-current-file> APIARY_API_KEY=<...> APIARY_API_NAME=<...> GITHUB_API_TOKEN=<...> vagrant up"
- After first launch you can run
vagrant ssh
andcd /var/dredd_test && composer check
- NodeJs and Npm.
- PHP 7.
- Composer:
curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer
- Run:
composer install && npm install
- Put your Apiary parameters and GitHub token below and run the command:
APIARY_API_KEY=<...> APIARY_API_NAME=<...> GITHUB_API_TOKEN=<...> composer check"