mirror of
https://github.com/tbabej/taskwiki.git
synced 2025-08-19 06:43:06 +02:00
tests: Run tests in parallel using pytest-xdist
This commit is contained in:
parent
2c22bb2645
commit
7f47669e0c
3 changed files with 3 additions and 3 deletions
|
@ -14,4 +14,4 @@ install:
|
||||||
- pushd $TRAVIS_BUILD_DIR
|
- pushd $TRAVIS_BUILD_DIR
|
||||||
- docker-compose build --build-arg TASK_VERSION=$TASK_VERSION tests
|
- docker-compose build --build-arg TASK_VERSION=$TASK_VERSION tests
|
||||||
script:
|
script:
|
||||||
- make test
|
- make test PYTEST_FLAGS="-n8"
|
||||||
|
|
|
@ -28,7 +28,7 @@ RUN cd /root/.vim/bundle; git clone https://github.com/vimwiki/vimwiki.git
|
||||||
RUN cd /root/.vim/bundle/vimwiki/; git checkout dev
|
RUN cd /root/.vim/bundle/vimwiki/; git checkout dev
|
||||||
|
|
||||||
# Setup taskwiki
|
# Setup taskwiki
|
||||||
RUN pip3 install nose pytest coveralls coverage vimrunner
|
RUN pip3 install nose pytest pytest-xdist coveralls coverage vimrunner
|
||||||
ADD requirements.txt requirements.txt
|
ADD requirements.txt requirements.txt
|
||||||
RUN pip3 install -r requirements.txt
|
RUN pip3 install -r requirements.txt
|
||||||
RUN mkdir /root/.vim/bundle/taskwiki
|
RUN mkdir /root/.vim/bundle/taskwiki
|
||||||
|
|
|
@ -10,7 +10,7 @@ import vimrunner
|
||||||
from tasklib import TaskWarrior, Task
|
from tasklib import TaskWarrior, Task
|
||||||
from time import sleep
|
from time import sleep
|
||||||
|
|
||||||
server_name = "TaskWikiTestServer"
|
server_name = "TaskWikiTestServer-{}".format(os.getpid())
|
||||||
server = vimrunner.Server(name=server_name)
|
server = vimrunner.Server(name=server_name)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue