aboutsummaryrefslogtreecommitdiffstats
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorDario Lombardo <lomato@gmail.com>2019-05-10 10:49:17 +0200
committerPeter Wu <peter@lekensteyn.nl>2019-05-11 13:05:54 +0000
commitc95e83d9a94c270a5d04202ab3ef4ad86847eed2 (patch)
tree485513217b67b76109ac6e76e39ae8ea327c7190 /.gitlab-ci.yml
parent267d81148fcb9a3f795eedb672b5cb75ac400b28 (diff)
gitlab-ci: fix pytest execution.
pytest-3 is the executable name on the docker image (ubuntu derivated). Remove pip and pytest installation while here, since they're provided by the docker image. Change-Id: Iad2e9cafc42cd1e83b2868126abb91d5ee7bbd92 Reviewed-on: https://code.wireshark.org/review/33145 Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml22
1 files changed, 10 insertions, 12 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 49f9302290..02821ca0ef 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -14,13 +14,11 @@
retry: 1
before_script:
- apt-get update -qq
- - apt-get install -y python3-pip locales
- - pip3 install pytest pytest-xdist
+ - ./tools/debian-setup.sh --install-optional --install-test-deps -y
- useradd user
- locale-gen en_US.UTF-8
- export LANG=en_US.UTF-8
- export PYTEST_ADDOPTS=--skip-missing-programs=dumpcap,rawshark
- - ./tools/debian-setup.sh --install-optional --install-test-deps -y
- mkdir build
- cd build
.build-rpm: &build-rpm
@@ -36,7 +34,7 @@ gcc-5:
- ninja
- ninja test-programs
- chown -R user .
- - su user -c pytest
+ - su user -c pytest-3
gcc-6:
<<: *build-ubuntu
script:
@@ -44,7 +42,7 @@ gcc-6:
- ninja
- ninja test-programs
- chown -R user .
- - su user -c pytest
+ - su user -c pytest-3
gcc-7:
<<: *build-ubuntu
script:
@@ -52,7 +50,7 @@ gcc-7:
- ninja
- ninja test-programs
- chown -R user .
- - su user -c pytest
+ - su user -c pytest-3
gcc-8:
<<: *build-ubuntu
script:
@@ -60,7 +58,7 @@ gcc-8:
- ninja
- ninja test-programs
- chown -R user .
- - su user -c pytest
+ - su user -c pytest-3
gcc-8-nopcap:
<<: *build-ubuntu
script:
@@ -68,7 +66,7 @@ gcc-8-nopcap:
- ninja
- ninja test-programs
- chown -R user .
- - su user -c pytest
+ - su user -c pytest-3
clang-5:
<<: *build-ubuntu
script:
@@ -76,7 +74,7 @@ clang-5:
- ninja
- ninja test-programs
- chown -R user .
- - su user -c pytest
+ - su user -c pytest-3
clang-6:
<<: *build-ubuntu
script:
@@ -84,7 +82,7 @@ clang-6:
- ninja
- ninja test-programs
- chown -R user .
- - su user -c pytest
+ - su user -c pytest-3
clang-7:
<<: *build-ubuntu
script:
@@ -92,7 +90,7 @@ clang-7:
- ninja
- ninja test-programs
- chown -R user .
- - su user -c pytest
+ - su user -c pytest-3
clang-7-nopcap:
<<: *build-ubuntu
script:
@@ -100,7 +98,7 @@ clang-7-nopcap:
- ninja
- ninja test-programs
- chown -R user .
- - su user -c pytest
+ - su user -c pytest-3
build:rpm-centos-7:
<<: *build-rpm
image: centos:7