.gitlab-ci.yml 521 Bytes
Newer Older
1
---
2 3
image: python:latest

4 5 6 7 8 9 10 11 12 13 14 15
stages:
  - tests

variables:
  PIP_CACHE_DIR: "$CI_PROJECT_DIR/.pip"

cache:
  paths:
    - .pip/
    - virtenv/

before_script:
Romain Dessort's avatar
Romain Dessort committed
16
  - pip3 install virtualenv
17 18 19 20 21 22 23 24 25 26 27 28 29
  - virtualenv virtenv
  - source virtenv/bin/activate

molecule-role-common:
  stage: tests
  tags:
    - docker
  script:
    - docker -v
    - python -V
    - pip install ansible molecule docker
    - ansible --version
    - molecule --version
Romain Dessort's avatar
Romain Dessort committed
30
    - cd roles/common/
31 32 33 34
    - molecule test
  only:
    changes:
      - roles/common/**/*