feat: make testing stage look pretty
This commit is contained in:
parent
df54700c12
commit
856ff24c0f
1 changed files with 9 additions and 5 deletions
|
|
@ -1,4 +1,5 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
DEBIAN_FRONTEND: "noninteractive"
|
DEBIAN_FRONTEND: "noninteractive"
|
||||||
DOCKER_HOST: "tcp://docker:2375"
|
DOCKER_HOST: "tcp://docker:2375"
|
||||||
|
|
@ -11,16 +12,19 @@ molecule:
|
||||||
stage: "testing"
|
stage: "testing"
|
||||||
image: "docker:latest"
|
image: "docker:latest"
|
||||||
script:
|
script:
|
||||||
- "apk add \
|
|
||||||
--no-cache \
|
# install python, pip and git
|
||||||
|
- "apk add --no-cache \
|
||||||
python3 \
|
python3 \
|
||||||
py3-pip \
|
py3-pip \
|
||||||
git"
|
git"
|
||||||
- "pip3 install \
|
|
||||||
--break-system-packages \
|
# pip install ansible and molecule
|
||||||
--no-cache-dir \
|
- "pip3 install --break-system-packages --no-cache-dir \
|
||||||
ansible-core \
|
ansible-core \
|
||||||
ansible-lint \
|
ansible-lint \
|
||||||
molecule \
|
molecule \
|
||||||
molecule-plugins[docker]"
|
molecule-plugins[docker]"
|
||||||
|
|
||||||
|
# run molecule
|
||||||
- "molecule test"
|
- "molecule test"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue