mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-11 01:12:43 +00:00
Update integration test of python client
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
|
|
||||||
REQUIREMENTS_FILE=dev-requirements.txt
|
REQUIREMENTS_FILE=dev-requirements.txt
|
||||||
REQUIREMENTS_OUT=dev-requirements.txt.log
|
REQUIREMENTS_OUT=dev-requirements.txt.log
|
||||||
@@ -8,13 +8,14 @@ VENV=.venv
|
|||||||
clean:
|
clean:
|
||||||
rm -rf $(REQUIREMENTS_OUT)
|
rm -rf $(REQUIREMENTS_OUT)
|
||||||
rm -rf $(SETUP_OUT)
|
rm -rf $(SETUP_OUT)
|
||||||
|
rm -rf $(VENV)
|
||||||
rm -rf .tox
|
rm -rf .tox
|
||||||
rm -rf .coverage
|
rm -rf .coverage
|
||||||
find . -name "*.py[oc]" -delete
|
find . -name "*.py[oc]" -delete
|
||||||
find . -name "__pycache__" -delete
|
find . -name "__pycache__" -delete
|
||||||
|
|
||||||
test: clean
|
test: clean
|
||||||
sh ./test.sh
|
bash ./test.sh
|
||||||
|
|
||||||
test-all: clean
|
test-all: clean
|
||||||
sh ./test-all.sh
|
bash ./test-all.sh
|
||||||
|
|||||||
@@ -26,21 +26,6 @@
|
|||||||
<artifactId>exec-maven-plugin</artifactId>
|
<artifactId>exec-maven-plugin</artifactId>
|
||||||
<version>1.2.1</version>
|
<version>1.2.1</version>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
|
||||||
<id>pip-install</id>
|
|
||||||
<phase>pre-integration-test</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>exec</goal>
|
|
||||||
</goals>
|
|
||||||
<configuration>
|
|
||||||
<executable>pip</executable>
|
|
||||||
<arguments>
|
|
||||||
<argument>install</argument>
|
|
||||||
<argument>--user</argument>
|
|
||||||
<argument>virtualenv</argument>
|
|
||||||
</arguments>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
<execution>
|
<execution>
|
||||||
<id>nose-test</id>
|
<id>nose-test</id>
|
||||||
<phase>integration-test</phase>
|
<phase>integration-test</phase>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
|
|
||||||
REQUIREMENTS_FILE=dev-requirements.txt
|
REQUIREMENTS_FILE=dev-requirements.txt
|
||||||
REQUIREMENTS_OUT=dev-requirements.txt.log
|
REQUIREMENTS_OUT=dev-requirements.txt.log
|
||||||
@@ -8,7 +8,7 @@ DEACTIVE=false
|
|||||||
|
|
||||||
### set virtualenv
|
### set virtualenv
|
||||||
if [ -z "$VIRTUAL_ENV" ]; then
|
if [ -z "$VIRTUAL_ENV" ]; then
|
||||||
virtualenv $VENV --no-site-packages
|
virtualenv $VENV --no-site-packages --always-copy
|
||||||
source $VENV/bin/activate
|
source $VENV/bin/activate
|
||||||
DEACTIVE=true
|
DEACTIVE=true
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
|
|
||||||
REQUIREMENTS_FILE=dev-requirements.txt
|
REQUIREMENTS_FILE=dev-requirements.txt
|
||||||
REQUIREMENTS_OUT=dev-requirements.txt.log
|
REQUIREMENTS_OUT=dev-requirements.txt.log
|
||||||
@@ -8,7 +8,7 @@ DEACTIVE=false
|
|||||||
|
|
||||||
### set virtualenv
|
### set virtualenv
|
||||||
if [ -z "$VIRTUAL_ENV" ]; then
|
if [ -z "$VIRTUAL_ENV" ]; then
|
||||||
virtualenv $VENV --no-site-packages
|
virtualenv $VENV --no-site-packages --always-copy
|
||||||
source $VENV/bin/activate
|
source $VENV/bin/activate
|
||||||
DEACTIVE=true
|
DEACTIVE=true
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user