This repository has been archived by the owner on Nov 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 280
Revamp dredd init #1102
Merged
Merged
Revamp dredd init #1102
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
93a8d66
feat: revamp dredd init
honzajavorek c2b5ace
docs: migrate to CircleCI 2.0
honzajavorek 0b6d7a0
test: use _ name of the function as that's how it's exported
honzajavorek 5b0510d
test: add unit tests
honzajavorek 44fc8a8
test: remove redundant tests
honzajavorek bb3178e
docs: fix redirects, the JSON Schema book has moved
honzajavorek File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -459,15 +459,18 @@ If you prefer to add Dredd yourself or you look for inspiration on how to add Dr | |
|
||
<a name="circleyml-configuration-file-for-circleci"></a><!-- legacy MkDocs anchor --> | ||
|
||
### `circle.yml` Configuration File for [CircleCI][] | ||
### `.circleci/config.yml` Configuration File for [CircleCI][] | ||
|
||
``` | ||
dependencies: | ||
pre: | ||
- npm install -g [email protected] | ||
test: | ||
pre: | ||
- dredd apiary.apib http://127.0.0.1:3000 | ||
version: 2 | ||
jobs: | ||
build: | ||
docker: | ||
- image: circleci/node:latest | ||
steps: | ||
- checkout | ||
- run: npm install [email protected] --no-optional --global | ||
- run: dredd apiary.apib http://127.0.0.1:3000 | ||
``` | ||
|
||
<a name="travisyml-configuration-file-for-travis-ci"></a><!-- legacy MkDocs anchor --> | ||
|
@@ -476,7 +479,7 @@ test: | |
|
||
``` | ||
before_install: | ||
- npm install -g [email protected] | ||
- npm install [email protected] --no-optional --global | ||
before_script: | ||
- dredd apiary.apib http://127.0.0.1:3000 | ||
``` | ||
|
@@ -817,7 +820,7 @@ If your hooks crash, Dredd will send an error to reporters, alongside with curre | |
[apib-required]: https://apiblueprint.org/documentation/mson/specification.html#353-type-attribute | ||
[apib-fixed]: https://apiblueprint.org/documentation/mson/specification.html#353-type-attribute | ||
[apib-enum]: https://apiblueprint.org/documentation/mson/specification.html#212-structure-types | ||
[json-schema-enum]: https://spacetelescope.github.io/understanding-json-schema/reference/generic.html#enumerated-values | ||
[json-schema-additional-properties]: https://spacetelescope.github.io/understanding-json-schema/reference/object.html#properties | ||
[json-schema-required]: https://spacetelescope.github.io/understanding-json-schema/reference/object.html#required-properties | ||
[json-schema-arrays]: https://spacetelescope.github.io/understanding-json-schema/reference/array.html | ||
[json-schema-enum]: https://json-schema.org/understanding-json-schema/reference/generic.html#enumerated-values | ||
[json-schema-additional-properties]: https://json-schema.org/understanding-json-schema/reference/object.html#properties | ||
[json-schema-required]: https://json-schema.org/understanding-json-schema/reference/object.html#required-properties | ||
[json-schema-arrays]: https://json-schema.org/understanding-json-schema/reference/array.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might also be worth mentioning that
apiaryio/dredd
image can be used if all you need is Dredd like in your example.In real world you will need an image capable of running Dredd alongside the users app, so I think it is worth mentioning that the circle CI images
-node-browsers
images adds Node to other languages, for example:circleci/python:3-node-browsers
image can be used for Python apps.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Those are good points. I'm recording them here: #353 (comment)