We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f909b6 commit 99fb461Copy full SHA for 99fb461
.gitlab-ci.yml
@@ -13,17 +13,16 @@ stages:
13
pytest:
14
stage: test
15
image: python:3.6-slim-stretch
16
+ services:
17
+ - redis:5-alpine
18
before_script:
19
- apt-get update
20
- apt-get install --no-install-recommends -q -y libsnmp-dev build-essential git
21
- pip install --no-cache-dir pipenv
22
- pipenv install --dev
- - docker run -d --net=host -p 127.0.0.1:6379:6379 --name redis redis:5-alpine
23
script:
- - export REDIS_HOST="127.0.0.1"
24
+ - export REDIS_HOST="redis"
25
- pipenv run pytest -x test_snmpcollector.py
- after_script:
26
- - docker rm -f redis
27
28
deploy to docker hub:
29
stage: deploy
0 commit comments