2017-01-02 17:52:58 +01:00
|
|
|
---
|
|
|
|
language: python
|
|
|
|
python: "2.7"
|
2018-06-25 10:52:16 +02:00
|
|
|
cache: pip
|
2017-01-02 17:52:58 +01:00
|
|
|
|
|
|
|
# Use the new container infrastructure
|
|
|
|
sudo: required
|
|
|
|
|
|
|
|
# Enable the docker service
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
|
2018-06-25 10:52:16 +02:00
|
|
|
env:
|
|
|
|
matrix:
|
|
|
|
- ANSIBLE=2.3
|
|
|
|
- ANSIBLE=2.4
|
|
|
|
- ANSIBLE=2.5
|
|
|
|
|
|
|
|
# Install tox
|
2017-01-02 17:52:58 +01:00
|
|
|
install:
|
2018-06-25 13:43:22 +02:00
|
|
|
- pip install tox-travis git-semver
|
2017-01-02 17:52:58 +01:00
|
|
|
|
2018-06-25 10:52:16 +02:00
|
|
|
# Execute tests
|
2017-01-02 17:52:58 +01:00
|
|
|
script:
|
2018-06-25 10:52:16 +02:00
|
|
|
- tox
|
2017-01-02 17:52:58 +01:00
|
|
|
|
2018-06-25 13:39:34 +02:00
|
|
|
# Update Changelog and create a release (only from master branch)
|
|
|
|
deploy:
|
|
|
|
provider: script
|
|
|
|
skip_cleanup: true
|
|
|
|
script: .travis/releaser.sh
|
|
|
|
on:
|
|
|
|
branch: master
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
|
2017-01-02 17:52:58 +01:00
|
|
|
notifications:
|
|
|
|
webhooks: https://galaxy.ansible.com/api/v1/notifications/
|