Skip to content

Commit

Permalink
[CI] Add syntax/lint check jobs on Ansible v2.6-7.
Browse files Browse the repository at this point in the history
  • Loading branch information
chusiang committed Oct 27, 2018
1 parent 220390b commit b5973af
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,22 @@ jobs:
- docker run --rm -it chusiang/ansible:$ANSIBLE_VERSION ansible --version
- docker run --rm -it -v $PWD:/srv chusiang/ansible:$ANSIBLE_VERSION /bin/sh -c "cd /srv && ansible-playbook --syntax-check setup.yml"

- stage: Syntax check
env:
- ANSIBLE_VERSION="2.6"
script:
- echo "==> Syntax Check on Ansible $ANSIBLE_VERSION ..."
- docker run --rm -it chusiang/ansible:$ANSIBLE_VERSION ansible --version
- docker run --rm -it -v $PWD:/srv chusiang/ansible:$ANSIBLE_VERSION /bin/sh -c "cd /srv && ansible-playbook --syntax-check setup.yml"

- stage: Syntax check
env:
- ANSIBLE_VERSION="2.7"
script:
- echo "==> Syntax Check on Ansible $ANSIBLE_VERSION ..."
- docker run --rm -it chusiang/ansible:$ANSIBLE_VERSION ansible --version
- docker run --rm -it -v $PWD:/srv chusiang/ansible:$ANSIBLE_VERSION /bin/sh -c "cd /srv && ansible-playbook --syntax-check setup.yml"

# Stage of Lint check
# ===================

Expand All @@ -50,6 +66,22 @@ jobs:
- docker run --rm -it chusiang/ansible:$ANSIBLE_VERSION ansible --version
- docker run --rm -it -v $PWD:/srv chusiang/ansible:$ANSIBLE_VERSION /bin/sh -c "cd /srv && ansible-lint setup.yml"

- stage: Lint check
env:
- ANSIBLE_VERSION="2.6"
script:
- echo "==> Lint Check on Ansible $ANSIBLE_VERSION ..."
- docker run --rm -it chusiang/ansible:$ANSIBLE_VERSION ansible --version
- docker run --rm -it -v $PWD:/srv chusiang/ansible:$ANSIBLE_VERSION /bin/sh -c "cd /srv && ansible-lint setup.yml"

- stage: Lint check
env:
- ANSIBLE_VERSION="2.7"
script:
- echo "==> Lint Check on Ansible $ANSIBLE_VERSION ..."
- docker run --rm -it chusiang/ansible:$ANSIBLE_VERSION ansible --version
- docker run --rm -it -v $PWD:/srv chusiang/ansible:$ANSIBLE_VERSION /bin/sh -c "cd /srv && ansible-lint setup.yml"

# Stage of Build
# ==============

Expand Down

0 comments on commit b5973af

Please sign in to comment.