Skip to content

Commit

Permalink
Update circleci to make sure the generated code is checked in
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouzhuojie committed Jun 17, 2020
1 parent 0920e95 commit 20e9771
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 11 deletions.
1 change: 1 addition & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:
steps:
- checkout
- run: make deps
- run: make verify_swagger_nochange
- run: make ci
- run: bash <(curl -s https://codecov.io/bash)

Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ verify_swagger:
@echo "Running $@"
@swagger validate $(PWD)/docs/api_docs/bundle.yaml

verify_swagger_nochange: swagger
@echo "Running verify_swagger_nochange to make sure the swagger generated code is checked in"
@git diff --exit-code

clean:
@echo "Cleaning up all the generated files"
@find . -name '*.test' | xargs rm -fv
Expand Down
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,17 @@ Or try it on [https://try-flagr.herokuapp.com](https://try-flagr.herokuapp.com),

```
curl --request POST \
--url https://try-flagr.herokuapp.com/api/v1/evaluation \
--header 'content-type: application/json' \
--data '{
"entityID": "127",
"entityType": "user",
"entityContext": {
"state": "NY"
},
"flagID": 1,
"enableDebug": true
}'
--url https://try-flagr.herokuapp.com/api/v1/evaluation \
--header 'content-type: application/json' \
--data '{
"entityID": "127",
"entityType": "user",
"entityContext": {
"state": "NY"
},
"flagID": 1,
"enableDebug": true
}'
```


Expand Down

0 comments on commit 20e9771

Please sign in to comment.