Skip to content

Commit 7abdc1b

Browse files
committed
Don't run release test separately
1 parent 1e3f540 commit 7abdc1b

File tree

3 files changed

+11
-32
lines changed

3 files changed

+11
-32
lines changed

.travis.yml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,12 @@ install:
2020
- pip install tox-travis
2121
jobs:
2222
include:
23-
- stage: test
24-
python: "2.7"
25-
- stage: test
26-
python: "3.5"
27-
- stage: test
28-
python: "3.6"
29-
- stage: test
30-
python: "3.7"
31-
#- stage: test
32-
# python: "3.8-dev" # ruamel.yaml doesn't support 3.8 yet
33-
- stage: release-test
34-
python: "2.7"
23+
- python: "2.7"
24+
- python: "3.5"
25+
- python: "3.6"
26+
- python: "3.7"
27+
#- python: "3.8-dev" # ruamel.yaml doesn't support 3.8 yet
28+
- python: "3.7"
3529
script: RELEASE_SKIP=head ${TRAVIS_BUILD_DIR}/release-test.sh
3630
script: tox
3731
branches:

Makefile

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,6 @@ VERSION=1.0.$(shell TZ=UTC git log --first-parent --max-count=1 \
3434
--format=format:%cd --date=format-local:%Y%m%d%H%M%S)
3535
mkfile_dir := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
3636
UNAME_S=$(shell uname -s)
37-
ifeq ($(UNAME_S),Linux)
38-
nproc=$(shell nproc)
39-
endif
40-
ifeq ($(UNAME_S),Darwin)
41-
nproc=$(shell sysctl -n hw.physicalcpu)
42-
endif
4337

4438
## all : default task
4539
all:
@@ -120,11 +114,11 @@ format: autopep8
120114
## pylint : run static code analysis on Python code
121115
pylint: $(PYSOURCES)
122116
pylint --msg-template="{path}:{line}: [{msg_id}({symbol}), {obj}] {msg}" \
123-
$^ -j$(nproc)|| true
117+
$^ -j0|| true
124118

125119
pylint_report.txt: ${PYSOURCES}
126120
pylint --msg-template="{path}:{line}: [{msg_id}({symbol}), {obj}] {msg}" \
127-
$^ -j$(nproc)> $@ || true
121+
$^ -j0> $@ || true
128122

129123
diff_pylint_report: pylint_report.txt
130124
diff-quality --violations=pylint pylint_report.txt
@@ -154,11 +148,11 @@ diff-cover.html: coverage.xml
154148

155149
## test : run the ${MODULE} test suite
156150
test: $(pysources)
157-
python setup.py test --addopts "-n$(nproc) --dist=loadfile"
151+
python setup.py test --addopts "-n auto"
158152

159153
## testcov : run the ${MODULE} test suite and collect coverage
160154
testcov: $(pysources)
161-
python setup.py test --addopts "--cov cwltool -n$(nproc) --dist=loadfile"
155+
python setup.py test --addopts "--cov cwltool -n auto"
162156

163157
sloccount.sc: ${PYSOURCES} Makefile
164158
sloccount --duplicates --wide --details $^ > $@

release-test.sh

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,13 @@ package=cwltool
99
module=cwltool
1010
slug=${TRAVIS_PULL_REQUEST_SLUG:=common-workflow-language/cwltool}
1111
repo=https://github.com/${slug}.git
12-
parallel=""
13-
if [[ "${OSTYPE}" == linux* ]]
14-
then
15-
parallel=-n$(( $(nproc) / 2 ))
16-
fi
17-
if [[ "${OSTYPE}" == darwin* ]]
18-
then
19-
parallel=-n$(( $(sysctl -n hw.physicalcpu) / 2 ))
20-
fi
2112
test_prefix=""
2213
run_tests() {
2314
local mod_loc
2415
mod_loc=$(pip show ${package} |
2516
grep ^Location | awk '{print $2}')/${module}
2617
${test_prefix}bin/py.test "--ignore=${mod_loc}/schemas/" \
27-
--pyarg -x ${module} ${parallel} --dist=loadfile
18+
--pyarg -x ${module} -n auto
2819
}
2920
pipver=7.0.2 # minimum required version of pip
3021
setuptoolsver=24.2.0 # required to generate correct metadata for

0 commit comments

Comments
 (0)