.gitlab-ci.yml 416 Bytes
Newer Older
1
stages:
okhin's avatar
okhin committed
2
    - galaxy
okhin's avatar
okhin committed
3
    - test-syntax
4

5
galaxy:install:
okhin's avatar
okhin committed
6 7
    stage: galaxy
    script:
okhin's avatar
okhin committed
8
        - ansible-galaxy install -f -r dependencies.yml -p ./roles/
okhin's avatar
okhin committed
9
    tags: [preprod]
10
    artifacts:
okhin's avatar
okhin committed
11
        paths:
12 13
            - roles/
        expire_in: 1 week
okhin's avatar
okhin committed
14

15 16

syntax:check:
okhin's avatar
okhin committed
17
    stage: test-syntax
18 19 20
    script:
        - ansible-playbook --syntax-check site.yml
    tags: [preprod]
21 22
    dependencies:
        - galaxy:install