forked from csuka/ansible_role_mongodb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
40 lines (35 loc) · 911 Bytes
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
---
image: docker:latest
services:
- name: docker:dind
entrypoint: ["env", "-u", "DOCKER_HOST"]
command: ["dockerd-entrypoint.sh"]
variables:
DOCKER_DRIVER: overlay2
DOCKER_TLS_CERTDIR: "/certs"
stages:
- test
before_script:
- docker info
- rm -rf "/var/cache/apk/*"
- apk -U upgrade && apk update
- apk add libffi-dev openssl-dev musl-dev libressl-dev build-base make gcc
- apk add python3 python3-dev py3-pip py3-cryptography
molecule:
stage: test
tags:
- docker
script:
- docker -v
- python3 -V
- python3 -m pip install ansible ansible-lint
- python3 -m pip install flake8 molecule yamllint requests
- python3 -m pip install docker docker-compose
- python3 -m pip install "molecule[docker]"
- ansible --version
- molecule --version
- molecule test -s default
- molecule test -s cluster
except:
changes:
- README.md