Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod-tests
Commits
dc52c1b69ea4
Commit
9471bc5c
authored
Oct 06, 2020
by
Georges Racinet
🦑
Browse files
Heptapod CI: merged pytest-shard from the stable branch.
parents
55b1ee0b3b1b
d8ea0da12ff8
Pipeline
#11130
failed with stages
in 1 minute and 1 second
Changes
3
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
dc52c1b6
...
...
@@ -11,7 +11,7 @@ flake8:
script
:
-
flake8 tests conftest.py
docker-remote
:
.
docker-remote
:
stage
:
test-heptapod
services
:
-
name
:
octobus/heptapod:$TARGET_HEPTAPOD_IMAGE
...
...
@@ -19,6 +19,8 @@ docker-remote:
-
name
:
selenium/standalone-chrome
alias
:
selenium
image
:
octobus/ci-py3-hgext3rd
variables
:
PYTEST_NUM_SHARDS
:
2
script
:
-
apt-get update
-
apt-get -y install tox openssh-client
...
...
@@ -51,4 +53,17 @@ docker-inside:
-
if
:
'
$CI_PIPELINE_SOURCE
==
"merge_request_event"'
-
when
:
manual
# default case
docker-remote-0
:
variables
:
PYTEST_SHARD_ID
:
0
extends
:
-
.docker-remote
docker-remote-1
:
variables
:
PYTEST_SHARD_ID
:
1
extends
:
-
.docker-remote
ci/run-tests
View file @
dc52c1b6
...
...
@@ -4,6 +4,8 @@ set -e
HEPTAPOD_SERVICE_IP
=
`
getent ahostsv4 heptapod |
grep
STREAM |
cut
-f
1
-d
' '
`
COMMON_FLAGS
=
"-v
\
--num-shards=
$PYTEST_NUM_SHARDS
\
--shard-id=
$PYTEST_SHARD_ID
\
--heptapod-url http://
$HEPTAPOD_SERVICE_IP
\
--heptapod-ssh-port 22
\
--heptapod-remote
\
...
...
tox.ini
View file @
dc52c1b6
...
...
@@ -8,6 +8,7 @@ deps =
pytest
selenium
pytest-parallel
pytest-shard
commands
=
py.test
{posargs}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment