Commit 7e93b222 authored by Sergio Gimenez's avatar Sergio Gimenez
Browse files

Merge branch 'master' of gitlab.i2cat.net:areas/software-networks/operator-platform/op-automation

parents 87bd8858 07d81965
Loading
Loading
Loading
Loading
+16 −16
Original line number Diff line number Diff line
image: python:3.9-alpine

stages:
  - lint
#   - lint
  - deploy

ansible-lint:
  stage: lint
  image: python:3.9
  script:
    - pip install ansible-lint
    - cd ansible
    - chmod 700 .
    - 'echo "profile: min" > .ansible-lint'
    - 'echo "skip_list:" >> .ansible-lint'
    - 'echo "  - var-naming" >> .ansible-lint'
    - 'echo "  - yaml[line-length]" >> .ansible-lint'
    - 'echo "  - run-once[task]" >> .ansible-lint'
    - 'echo "  - no-handler" >> .ansible-lint'
    - ansible-galaxy collection install -r requirements.yml --ignore-certs
    - ansible-lint playbooks/ roles/
# ansible-lint:
#   stage: lint
#   image: python:3.9
#   script:
#     - pip install ansible-lint
#     - cd ansible
#     - chmod 700 .
#     - 'echo "profile: min" > .ansible-lint'
#     - 'echo "skip_list:" >> .ansible-lint'
#     - 'echo "  - var-naming" >> .ansible-lint'
#     - 'echo "  - yaml[line-length]" >> .ansible-lint'
#     - 'echo "  - run-once[task]" >> .ansible-lint'
#     - 'echo "  - no-handler" >> .ansible-lint'
#     - ansible-galaxy collection install -r requirements.yml --ignore-certs
#     - ansible-lint playbooks/ roles/

pages:
  stage: deploy