Merge pull request #4 from madonius/feature/gitlab-ci

Feature/gitlab ci
This commit is contained in:
Emmanouil Kampitakis 2019-02-18 00:53:11 +01:00 committed by GitHub
commit e4feafb8eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 26 additions and 1 deletions

24
.gitlab-ci.yml Normal file
View file

@ -0,0 +1,24 @@
---
# -*- coding: utf-8 -*-
before_script:
- apt-get update -qy
- apt-get install -y python-dev python-pip
- git submodule update --init
- pip install --upgrade ansible ansible-lint
- ansible --version
- ansible-lint --version
stages:
- ansible-lint
- ansible-syntax-check
ansible-lint-pip:
stage: ansible-lint
script:
- ansible-lint tests/test-pip.yml
ansible-lint-docker:
stage: ansible-lint
script:
- ansible-lint tests/test-docker.yml

View file

@ -2,7 +2,8 @@
- name: check that sypervision and deployment are compatible - name: check that sypervision and deployment are compatible
fail: fail:
msg: "Either both or neither of deployment and supervision method should be docker." msg: "Either both or neither of deployment and supervision method should be docker."
when: (matrix_synapse_supervision_method == "docker" and matrix_synapse_deployment_method != "docker") or (matrix_synapse_deployment_method == "docker" and matrix_synapse_supervision_method != "docker") when: (matrix_synapse_supervision_method == "docker" and matrix_synapse_deployment_method != "docker") or
(matrix_synapse_deployment_method == "docker" and matrix_synapse_supervision_method != "docker")
- name: configure synapse - name: configure synapse
import_tasks: configure.yml import_tasks: configure.yml