File tree Expand file tree Collapse file tree 4 files changed +12
-7
lines changed Expand file tree Collapse file tree 4 files changed +12
-7
lines changed Original file line number Diff line number Diff line change 1
1
include MANIFEST.in
2
+ include *requirements.txt
2
3
include gittaggers.py Makefile cwltool.py
3
4
include tests/*
4
5
include tests/tmp1/tmp2/tmp3/.gitkeep
Original file line number Diff line number Diff line change @@ -26,7 +26,8 @@ MODULE=cwltool
26
26
# `SHELL=bash` doesn't work for some, so don't use BASH-isms like
27
27
# `[[` conditional expressions.
28
28
PYSOURCES =$(wildcard ${MODULE}/** .py tests/* .py) setup.py
29
- DEVPKGS =pycodestyle diff_cover autopep8 pylint coverage pydocstyle flake8 pytest isort
29
+ DEVPKGS =pycodestyle diff_cover autopep8 pylint coverage pydocstyle flake8 \
30
+ pytest pytest-xdist isort
30
31
DEBDEVPKGS =pep8 python-autopep8 pylint python-coverage pydocstyle sloccount \
31
32
python-flake8 python-mock shellcheck
32
33
VERSION =1.0.$(shell date +% Y% m% d% H% M% S --utc --date=`git log --first-parent \
@@ -142,11 +143,11 @@ diff-cover.html: coverage.xml
142
143
143
144
# # test : run the ${MODULE} test suite
144
145
test : $(pysources )
145
- python setup.py test
146
+ python setup.py test --addopts " -n $( nproc ) --dist=loadfile "
146
147
147
148
# # testcov : run the ${MODULE} test suite and collect coverage
148
149
testcov : $(pysources )
149
- python setup.py test --addopts " --cov cwltool"
150
+ python setup.py test --addopts " --cov cwltool -n $( nproc ) --dist=loadfile "
150
151
151
152
sloccount.sc : ${PYSOURCES} Makefile
152
153
sloccount --duplicates --wide --details $^ > sloccount.sc
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
set -e
3
- docker build --file=cwltool.Dockerfile --tag=commonworkflowlanguage/cwltool-module --target module .
3
+ docker build --file=cwltool.Dockerfile --tag=commonworkflowlanguage/cwltool_module --target module .
4
4
docker build --file=cwltool.Dockerfile --tag=commonworkflowlanguage/cwltool .
5
5
6
6
version=$( git describe --tags)
7
7
echo $version | grep -vq ' \-' >& /dev/null
8
8
if [ $? -eq 0 ]; then
9
- docker tag commonworkflowlanguage/cwltool-module commonworkflowlanguage/cwltool-module :$version
9
+ docker tag commonworkflowlanguage/cwltool_module commonworkflowlanguage/cwltool_module :$version
10
10
docker tag commonworkflowlanguage/cwltool commonworkflowlanguage/cwltool:$version
11
11
fi
Original file line number Diff line number Diff line change 3
3
set -e
4
4
set -x
5
5
6
+ export LC_ALL=C
7
+
6
8
package=cwltool
7
9
module=cwltool
8
10
slug=${TRAVIS_PULL_REQUEST_SLUG:= common-workflow-language/ cwltool}
9
11
repo=https://github.com/${slug} .git
10
- run_tests=" bin/py.test --ignore ${module} /schemas/ --pyarg cwltool"
12
+ run_tests=" bin/py.test --ignore ${module} /schemas/ --pyarg cwltool -n $( nproc ) --dist=loadfile "
11
13
pipver=7.0.2 # minimum required version of pip
12
14
setuptoolsver=24.2.0 # required to generate correct metadata for
13
15
# python_requires
@@ -71,10 +73,11 @@ rm lib/python-wheels/setuptools* \
71
73
&& pip install --force-reinstall -U pip==${pipver} \
72
74
&& pip install setuptools==${setuptoolsver} wheel
73
75
pip install ${package} * tar.gz
74
- pip install -r${DIR} /test-requirements.txt
76
+ pip install " -r${DIR} /test-requirements.txt"
75
77
mkdir out
76
78
tar --extract --directory=out -z -f ${package} * .tar.gz
77
79
cd out/${package} *
80
+ make install-dep
78
81
make dist
79
82
make test
80
83
pip uninstall -y ${package} || true ; pip uninstall -y ${package} || true ; make install
You can’t perform that action at this time.
0 commit comments