@@ -4,30 +4,36 @@ matrix:
4
4
include :
5
5
- python : " 2.7"
6
6
env : PROJECT=idaplugin ENV=conda
7
+ - python : " 3.6"
8
+ env : PROJECT=idaplugin ENV=conda
7
9
- python : " 2.7"
8
10
env : PROJECT=server ENV=data DJANGO_SETTINGS_MODULE='rematch.settings.debug'
9
11
services :
10
- - mysql
11
12
- rabbitmq
12
- - python : " 3.5 "
13
+ - python : " 3.6 "
13
14
env : PROJECT=server ENV=data DJANGO_SETTINGS_MODULE='rematch.settings.production'
14
15
services :
15
- - mysql
16
16
- rabbitmq
17
17
- python : " 2.7"
18
18
env : PROJECT=server ENV=docker DJANGO_SETTINGS_MODULE='rematch.settings.docker'
19
- services : docker
19
+ services :
20
+ - docker
20
21
- python : " 2.7"
21
22
env : PROJECT=setup.py
22
23
- python : " 3.6"
23
24
env : PROJECT=setup.py
24
25
- python : " 3.6"
25
26
env : PROJECT=docs
27
+ - python : 2.7
28
+ env : PROJECT=interop ENV=conda DJANGO_SETTINGS_MODULE='rematch.settings.debug'
26
29
27
30
branches :
28
31
only :
29
32
- master
30
33
34
+ addons :
35
+ mariadb : ' 10.3'
36
+
31
37
# Handle git submodules ourselves to replace ssh login with https login
32
38
git :
33
39
submodules : false
@@ -44,36 +50,43 @@ install:
44
50
docker-compose -f ./${PROJECT}/docker-compose.yml build ;
45
51
docker-compose -f ./${PROJECT}/docker-compose.yml up -d ;
46
52
if [ -f ./tests/${PROJECT}/requirements.txt ]; then
47
- docker-compose -f ./${PROJECT}/docker-compose.yml exec web pip install -r ./tests/requirements.txt ;
53
+ docker-compose -f ./${PROJECT}/docker-compose.yml exec web pip install --upgrade - r ./tests/server /requirements.txt ;
48
54
fi ;
49
- docker-compose -f ./${PROJECT}/docker-compose.yml exec web pip install coveralls pytest-cov ;
55
+ docker-compose -f ./${PROJECT}/docker-compose.yml exec web pip install --upgrade coveralls pytest-cov ;
56
+ pip install --upgrade flake8 ;
50
57
fi ;
51
58
- if [ "${ENV}" = "conda" ]; then
52
- wget https://repo.continuum.io/miniconda/Miniconda2 -latest-Linux-x86_64.sh -O miniconda.sh ;
59
+ wget " https://repo.continuum.io/miniconda/Miniconda${TRAVIS_PYTHON_VERSION:0:1} -latest-Linux-x86_64.sh" -O miniconda.sh ;
53
60
bash ./miniconda.sh -b -p "${HOME}/miniconda" ;
54
61
export PATH=${HOME}/miniconda/bin:$PATH ;
55
62
conda info -a ;
56
63
conda install --yes python=${TRAVIS_PYTHON_VERSION} pyqt ;
57
64
fi ;
58
65
- if [ "${ENV}" = "data" ]; then
59
- pip install --only-binary=numpy,scipy numpy scipy ;
60
- fi ;
61
- - if [ -f tests/${PROJECT}/requirements.txt ]; then
62
- pip install -r tests/${PROJECT}/requirements.txt ;
66
+ pip install --upgrade --only-binary=numpy,scipy numpy scipy ;
63
67
fi ;
64
- - if [ -f "${PROJECT}/requirements.txt" ]; then
65
- pip install -r "${PROJECT}/requirements.txt" ;
68
+ - if [ "${ENV}" != "docker" ]; then
69
+ if [ -f "tests/${PROJECT}/requirements.txt" ]; then
70
+ pip install --upgrade -r "tests/${PROJECT}/requirements.txt" ;
71
+ fi ;
72
+ if [ -f "${PROJECT}/requirements.txt" ]; then
73
+ pip install --upgrade -r "${PROJECT}/requirements.txt" ;
74
+ fi ;
75
+ pip install --upgrade flake8 coveralls pytest-cov ;
66
76
fi ;
67
- - pip install flake8 coveralls pytest-cov ;
68
77
69
78
script :
70
79
- flake8 ./${PROJECT} --show-source --statistics
71
80
- if [ -d ./tests/${PROJECT} ]; then flake8 ./tests/${PROJECT} --show-source ; fi ;
72
81
- if [ -d ./tests/${PROJECT} ]; then
73
82
if [ "${ENV}" = "docker" ]; then
74
- docker-compose -f ./${PROJECT}/docker-compose.yml exec web py.test -rapP ./ --verbose --cov-report= --cov=. ;
83
+ docker-compose -f ./${PROJECT}/docker-compose.yml exec web /bin/bash -c "PYTHONPATH=. py.test -rapP ./${PROJECT} ./tests/${PROJECT} -p tests.server.pymysql_mysqldb --verbose --cov-report= --cov=${PROJECT} ;" ;
84
+ elif [ "${PROJECT}" = "interop" ]; then
85
+ PYTHONPATH=. py.test -rapP ./server ./idaplugin ./tests/${PROJECT} -p tests.server.pymysql_mysqldb --verbose --cov-report= --cov=server --cov=idaplugin ;
86
+ elif [ "${PROJECT}" = "server" ]; then
87
+ PYTHONPATH=. py.test -rapP ./${PROJECT} ./tests/${PROJECT} -p tests.server.pymysql_mysqldb --verbose --cov-report= --cov=${PROJECT} ;
75
88
else
76
- PYTHONPATH=. py.test -rapP ./${PROJECT} ./tests/${PROJECT} --verbose --cov-report= --cov=${PROJECT} ;
89
+ py.test -rapP ./${PROJECT} ./tests/${PROJECT} --verbose --cov-report= --cov=${PROJECT} ;
77
90
fi ;
78
91
fi ;
79
92
- if [ "${PROJECT}" = "setup.py" ]; then python ./setup.py server install ; fi ;
0 commit comments