Skip to content

Commit

Permalink
feat(swagger): generate swagger client (#90)
Browse files Browse the repository at this point in the history
* feat(swagger): generate swagger client

* fix(readme): remove duplicated api doc

* chore(docs): add readme for tests
  • Loading branch information
philloooo authored Mar 28, 2018
1 parent 546dcfe commit 3d6bdac
Show file tree
Hide file tree
Showing 8 changed files with 349 additions and 849 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ htmlcov/
.cache
nosetests.xml
coverage.xml
swagger_client

# Translations
*.mo
Expand Down
7 changes: 7 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,17 @@ language: python
python:
- "2.7"
- "3.4"
addons:
apt:
packages:
- oracle-java8-installer

sudo: false

install:
- "wget https://oss.sonatype.org/content/repositories/releases/io/swagger/swagger-codegen-cli/2.3.1/swagger-codegen-cli-2.3.1.jar"
- "java -jar swagger-codegen-cli-2.3.1.jar generate -i openapis/swagger.yaml -l python -o swagger_client"
- "cd swagger_client; python setup.py install; cd .."
- "python setup.py install --force"
- "pip install -r test-requirements.txt"

Expand Down
Loading

0 comments on commit 3d6bdac

Please sign in to comment.