Skip to content

Commit

Permalink
Merge pull request Azure#249 from lmazuel/Docker
Browse files Browse the repository at this point in the history
Use lmazuel/swagger-to-sdk Docker container
  • Loading branch information
devigned committed Apr 20, 2016
2 parents 0f36f6e + b1df21c commit ac7c5f8
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 777 deletions.
35 changes: 12 additions & 23 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,20 @@
language: csharp
sudo: false
mono:
- beta
language: node_js
node_js:
- "0.12"
services:
- docker
env:
matrix:
- MODE=syntax
- MODE=python
- MODE=node
global:
secure: IwPVExGJQfL6QpTd6Utv3R/qBz7yApgMspzMLSkrq9cMP6t+NHk1vYg0n2evcWaq2rqNZE9xBMfRZi7Yy/RCUT++qALE89xlNvZ/A94PaDUiK3tYYNj1XxsgRauCHshXz6smmLwQMpTKsEl6lyjXeXpwQMDNRehhTu0Hg2tE7ZikfQVb+jjRNcP41RfzzGQyxEhd3fxF2G1G21WXH0cXtZssOd1MYcXhmXk8dR3DyEEMbPzDV1Bk3auXOvbqS79bnZ/Pi4p/7P/aTOm8O2ACKM0XAvww95vAQ0LcPzKnNe3sNjFVAssBiZbIk0Zs30wULBphlTxVoufHKSZuTf+QEBTKpH99v/+SBDDPu9+0q2esq7TKgf8bvzkeXjh54fECdJUqEo9E2gW08+RQxWCqryMJouOPcY2OMs4lZwSMOXQY68a/CYVRWFaFg5s6jntC8sLHtDxV0qem3xyjc+852v8rUfkyvMhOBoZJjWmnqYVqdamHOOfrzjc7AzPUEzSeiN6OPPVli+SzwLHdip0GxdK46pAISCOcbdyYn11VvTIn1QosE66eWhF6SViVH6lNWgSfVTpcQ2zq/qSKh0/zpwn82Ys+wKDOf3EwQAanndgk26npi7Ik4nIuexZ/TE56rQ7qjZqmHoxFz7QMeTZDiVmLFxtR19cTT3GLxDz8nBQ=
addons:
apt:
sources:
- deadsnakes
packages:
- python3.5
install:
- wget https://bootstrap.pypa.io/get-pip.py -O /tmp/get-pip.py
- python3.5 /tmp/get-pip.py --user
- pip3.5 install -r ./SwaggerToSdk/requirements.txt --user
- ". $HOME/.nvm/nvm.sh"
- nvm install stable
- nvm use stable
- npm install
before_install:
- docker pull lmazuel/swagger-to-sdk
- python -c "import os; print('\n'.join(v for v in os.environ.keys() if v.startswith('TRAVIS')))" > /tmp/env_file
script:
- if [[ $MODE == 'python' ]]; then python3.5 ./SwaggerToSdk/SwaggerToSdk.py AutorestCI/azure-sdk-for-python
--pr-repo-id Azure/azure-sdk-for-python -o dev -v; fi
- if [[ $MODE == 'node' ]]; then python3.5 ./SwaggerToSdk/SwaggerToSdk.py AutorestCI/azure-sdk-for-node
--pr-repo-id Azure/azure-sdk-for-node -o autorest -v; fi
- if [[ $MODE == 'syntax' ]]; then npm test; fi
- DOCKER_CMD="docker run --rm --env-file /tmp/env_file -e GH_TOKEN -v $PWD:/git-restapi/ lmazuel/swagger-to-sdk"
- if [[ $MODE == 'python' ]]; then $DOCKER_CMD AutorestCI/azure-sdk-for-python --pr-repo-id Azure/azure-sdk-for-python -o dev -v; fi
- if [[ $MODE == 'node' ]]; then $DOCKER_CMD AutorestCI/azure-sdk-for-node --pr-repo-id Azure/azure-sdk-for-node -o autorest -v; fi
- if [[ $MODE == 'syntax' ]]; then npm test; fi
Binary file removed SwaggerToSdk/.gitignore
Binary file not shown.
111 changes: 0 additions & 111 deletions SwaggerToSdk/README.md

This file was deleted.

Loading

0 comments on commit ac7c5f8

Please sign in to comment.