add python ci

This commit is contained in:
wing328 2016-06-11 10:35:50 +08:00
parent 216d4b8b23
commit 1221a83504
4 changed files with 18 additions and 4 deletions

View File

@ -11,6 +11,7 @@ before_install:
# required when sudo: required for the Ruby petstore tests
- gem install bundler
- npm install -g typescript
- pip install virtualenv
install:

13
pom.xml
View File

@ -522,6 +522,18 @@
<module>samples/client/petstore/typescript-node/npm</module>
</modules>
</profile>
<profile>
<id>python-client</id>
<activation>
<property>
<name>env</name>
<value>java</value>
</property>
</activation>
<modules>
<module>samples/client/petstore/python</module>
</modules>
</profile>
<profile>
<id>ruby-client</id>
<activation>
@ -557,6 +569,7 @@
<modules>
<!-- run ruby test first which has a random delay script to
avoid issues with running 2 CI jobs in parallel. -->
<module>samples/client/petstore/python</module>
<module>samples/client/petstore/ruby</module>
<module>samples/client/petstore/typescript-fetch/tests/default</module>
<module>samples/client/petstore/typescript-fetch/builds/default</module>

View File

@ -15,7 +15,7 @@ clean:
find . -name "__pycache__" -delete
test: clean
bash ./test.sh
bash ./test_python2.sh
test-all: clean
bash ./test-all.sh
bash ./test_python2_and_3.sh

View File

@ -1,6 +1,6 @@
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>com.wordnik</groupId>
<groupId>io.swagger</groupId>
<artifactId>PythonPetstoreClientTests</artifactId>
<packaging>pom</packaging>
<version>1.0-SNAPSHOT</version>
@ -35,7 +35,7 @@
<configuration>
<executable>make</executable>
<arguments>
<argument>test</argument>
<argument>test-all</argument>
</arguments>
</configuration>
</execution>