@@ -37,17 +37,17 @@ before_install:
37
37
install :
38
38
- set +vx;
39
39
- pip install --upgrade pip setuptools wheel
40
- - if [ ${ENV} = "docker" ]; then
40
+ - if [ " ${ENV}" = "docker" ]; then
41
41
service docker start ;
42
42
docker-compose -f ./${PROJECT}/docker-compose.yml build ;
43
43
docker-compose -f ./${PROJECT}/docker-compose.yml up -d ;
44
44
if [ -f ./tests/${PROJECT}/requirements.txt ]; then
45
45
docker-compose -f ./${PROJECT}/docker-compose.yml exec web pip install -r ./tests/requirements.txt ;
46
46
fi ;
47
47
else
48
- if [ ${PROJECT} = "idaplugin" ]; then
48
+ if [ " ${PROJECT}" = "idaplugin" ]; then
49
49
wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh;
50
- bash ./miniconda.sh -b -p ${HOME}/miniconda;
50
+ bash ./miniconda.sh -b -p " ${HOME}/miniconda" ;
51
51
export PATH=${HOME}/miniconda/bin:$PATH;
52
52
conda info -a;
53
53
conda install --yes python=${TRAVIS_PYTHON_VERSION} pyqt;
@@ -58,8 +58,8 @@ install:
58
58
if [ -f tests/${PROJECT}/requirements.txt ]; then
59
59
pip install -r tests/${PROJECT}/requirements.txt ;
60
60
fi ;
61
- if [ -f ${PROJECT}/requirements.txt ]; then
62
- pip install -r ${PROJECT}/requirements.txt ;
61
+ if [ -f " ${PROJECT}/requirements.txt" ]; then
62
+ pip install -r " ${PROJECT}/requirements.txt" ;
63
63
fi ;
64
64
fi ;
65
65
- pip install flake8 coveralls pytest-cov ;
@@ -74,8 +74,10 @@ script:
74
74
PYTHONPATH=. py.test ./${PROJECT} ./tests/${PROJECT} --verbose --cov-report= --cov=$PROJECT ;
75
75
fi ;
76
76
fi ;
77
- - if [ ${PROJECT} = "setup.py" ]; then python ./setup.py server install ; fi ;
78
- - if [ ${PROJECT} = "setup.py" ]; then python ./setup.py idaplugin install ; fi ;
77
+ - if [ " ${PROJECT}" = "setup.py" ]; then python ./setup.py server install ; fi ;
78
+ - if [ " ${PROJECT}" = "setup.py" ]; then python ./setup.py idaplugin install ; fi ;
79
79
80
80
after_script :
81
- - if [ -d ./tests/${PROJECT} ] && [ ${ENV} != "docker" ]; then coveralls ; echo "./tests/${PROJECT}" ; fi ;
81
+ - if [ -d ./tests/${PROJECT} ] && [ "${ENV}" != "docker" ]; then
82
+ coveralls ;
83
+ fi ;
0 commit comments