Update integration test of python client

This commit is contained in:
geekerzp
2015-07-14 15:38:23 +08:00
parent 30925b7800
commit af67353022
4 changed files with 8 additions and 22 deletions

View File

@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
REQUIREMENTS_FILE=dev-requirements.txt
REQUIREMENTS_OUT=dev-requirements.txt.log
@@ -8,13 +8,14 @@ VENV=.venv
clean:
rm -rf $(REQUIREMENTS_OUT)
rm -rf $(SETUP_OUT)
rm -rf $(VENV)
rm -rf .tox
rm -rf .coverage
find . -name "*.py[oc]" -delete
find . -name "__pycache__" -delete
test: clean
sh ./test.sh
bash ./test.sh
test-all: clean
sh ./test-all.sh
bash ./test-all.sh

View File

@@ -26,21 +26,6 @@
<artifactId>exec-maven-plugin</artifactId>
<version>1.2.1</version>
<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>
<id>nose-test</id>
<phase>integration-test</phase>

View File

@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
REQUIREMENTS_FILE=dev-requirements.txt
REQUIREMENTS_OUT=dev-requirements.txt.log
@@ -8,7 +8,7 @@ DEACTIVE=false
### set virtualenv
if [ -z "$VIRTUAL_ENV" ]; then
virtualenv $VENV --no-site-packages
virtualenv $VENV --no-site-packages --always-copy
source $VENV/bin/activate
DEACTIVE=true
fi

View File

@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
REQUIREMENTS_FILE=dev-requirements.txt
REQUIREMENTS_OUT=dev-requirements.txt.log
@@ -8,7 +8,7 @@ DEACTIVE=false
### set virtualenv
if [ -z "$VIRTUAL_ENV" ]; then
virtualenv $VENV --no-site-packages
virtualenv $VENV --no-site-packages --always-copy
source $VENV/bin/activate
DEACTIVE=true
fi