diff --git a/.travis.yml b/.travis.yml index 7ef1a1f..dd9e5e1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,37 +1,36 @@ --- - language: python - services: docker - - env: - global: - - ROLE_NAME: cloudflare-acme - matrix: - - MOLECULE_DISTRO: centos7 - - MOLECULE_DISTRO: centos8 - - MOLECULE_DISTRO: ubuntu1804 - - MOLECULE_DISTRO: ubuntu1604 - - MOLECULE_DISTRO: debian9 - - MOLECULE_DISTRO: debian10 +language: python +services: docker - install: - # Install test dependencies. - - pip install molecule docker==4.2.2 testinfra ansible-lint flake8 yamllint - - before_script: - # Use actual Ansible Galaxy role name for the project directory. - - cd ../ - - mv ansible-$ROLE_NAME $ROLE_NAME - - cd $ROLE_NAME - - script: - - docker --version - - molecule --version - - ansible --version - - molecule test - - notifications: - webhooks: - urls: - - "https://galaxy.ansible.com/api/v1/notifications/" - on_success: change - \ No newline at end of file +env: + global: + - ROLE_NAME: cloudflare-acme + matrix: + - MOLECULE_DISTRO: centos7 + - MOLECULE_DISTRO: centos8 + - MOLECULE_DISTRO: ubuntu1804 + - MOLECULE_DISTRO: ubuntu1604 + - MOLECULE_DISTRO: debian9 + - MOLECULE_DISTRO: debian10 + +install: + # Install test dependencies. + - pip install molecule docker==4.2.2 testinfra ansible-lint flake8 yamllint + +before_script: + # Use actual Ansible Galaxy role name for the project directory. + - cd ../ + - mv ansible-$ROLE_NAME $ROLE_NAME + - cd $ROLE_NAME + +script: + - docker --version + - molecule --version + - ansible --version + - molecule test + +notifications: + webhooks: + urls: + - "https://galaxy.ansible.com/api/v1/notifications/" + on_success: change