Commit d62e554a authored by hadret's avatar hadret

fix: GitLab CI pipeline.

parent d1dc005c
Pipeline #486 passed with stage
in 1 minute and 16 seconds
---
stages:
- test
- cleanup
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.pip"
ROLE_NAME: restic
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
cache:
paths:
- .pip/
- virtenv/
- .cache/pip
before_script:
- cd ../
- mv ansible-role-$ROLE_NAME hadret.$ROLE_NAME
- cd hadret.$ROLE_NAME
- pip install --user virtualenv
- virtualenv virtenv
- source virtenv/bin/activate
- docker -v
- python3 -V
- python3 -m venv ..
- source ../bin/activate
molecule:
stage: test
tags:
- shell
script:
- docker -v
- python -V
- pip install ansible docker molecule
- ansible --version
- molecule --version
- pip install docker molecule
- molecule test
......@@ -10,4 +10,4 @@
changed_when: false
roles:
- role: hadret.restic
- role: ansible-role-restic
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment