.gitlab-ci.yml 416 Bytes
Newer Older
Okhin's avatar
Okhin committed
1
stages:
Okhin's avatar
Okhin committed
2
    - galaxy
Okhin's avatar
Okhin committed
3
    - test-syntax
Okhin's avatar
Okhin committed
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
Okhin's avatar
Okhin committed
18 19 20
    script:
        - ansible-playbook --syntax-check site.yml
    tags: [preprod]
21 22
    dependencies:
        - galaxy:install