Skip to content

Commit 5921b51

Browse files
authored
Fix docker image name (#852)
1 parent 4612578 commit 5921b51

File tree

4 files changed

+12
-7
lines changed

4 files changed

+12
-7
lines changed

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
include MANIFEST.in
2+
include *requirements.txt
23
include gittaggers.py Makefile cwltool.py
34
include tests/*
45
include tests/tmp1/tmp2/tmp3/.gitkeep

Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ MODULE=cwltool
2626
# `SHELL=bash` doesn't work for some, so don't use BASH-isms like
2727
# `[[` conditional expressions.
2828
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
3031
DEBDEVPKGS=pep8 python-autopep8 pylint python-coverage pydocstyle sloccount \
3132
python-flake8 python-mock shellcheck
3233
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
142143

143144
## test : run the ${MODULE} test suite
144145
test: $(pysources)
145-
python setup.py test
146+
python setup.py test --addopts "-n$(nproc) --dist=loadfile"
146147

147148
## testcov : run the ${MODULE} test suite and collect coverage
148149
testcov: $(pysources)
149-
python setup.py test --addopts "--cov cwltool"
150+
python setup.py test --addopts "--cov cwltool -n$(nproc) --dist=loadfile"
150151

151152
sloccount.sc: ${PYSOURCES} Makefile
152153
sloccount --duplicates --wide --details $^ > sloccount.sc

build-cwl-docker.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#!/bin/bash
22
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 .
44
docker build --file=cwltool.Dockerfile --tag=commonworkflowlanguage/cwltool .
55

66
version=$(git describe --tags)
77
echo $version | grep -vq '\-' >& /dev/null
88
if [ $? -eq 0 ];then
9-
docker tag commonworkflowlanguage/cwltool-module commonworkflowlanguage/cwltool-module:$version
9+
docker tag commonworkflowlanguage/cwltool_module commonworkflowlanguage/cwltool_module:$version
1010
docker tag commonworkflowlanguage/cwltool commonworkflowlanguage/cwltool:$version
1111
fi

release-test.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33
set -e
44
set -x
55

6+
export LC_ALL=C
7+
68
package=cwltool
79
module=cwltool
810
slug=${TRAVIS_PULL_REQUEST_SLUG:=common-workflow-language/cwltool}
911
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"
1113
pipver=7.0.2 # minimum required version of pip
1214
setuptoolsver=24.2.0 # required to generate correct metadata for
1315
# python_requires
@@ -71,10 +73,11 @@ rm lib/python-wheels/setuptools* \
7173
&& pip install --force-reinstall -U pip==${pipver} \
7274
&& pip install setuptools==${setuptoolsver} wheel
7375
pip install ${package}*tar.gz
74-
pip install -r${DIR}/test-requirements.txt
76+
pip install "-r${DIR}/test-requirements.txt"
7577
mkdir out
7678
tar --extract --directory=out -z -f ${package}*.tar.gz
7779
cd out/${package}*
80+
make install-dep
7881
make dist
7982
make test
8083
pip uninstall -y ${package} || true; pip uninstall -y ${package} || true; make install

0 commit comments

Comments
 (0)