Skip to content

Commit 65240f7

Browse files
author
Anze
committed
Run pytest via GitLab CI
1 parent e2b393a commit 65240f7

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.gitlab-ci.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
image: docker:stable
2+
3+
services:
4+
- docker:dind
5+
6+
variables:
7+
DOCKER_DRIVER: overlay2
8+
9+
stages:
10+
- test
11+
12+
pytest:
13+
stage: test
14+
image: python:3.6-slim-stretch
15+
before_script:
16+
- apt-get update
17+
- apt-get install --no-install-recommends -q -y libsnmp-dev build-essential
18+
- pip install pipenv
19+
- pipenv install --dev
20+
script:
21+
- pipenv run pytest -x test_snmpcollector.py

0 commit comments

Comments
 (0)