---
sudo: required
language: python
env:
  - MOLECULE_PLATFORM=centos
  - MOLECULE_PLATFORM=debian
  - MOLECULE_PLATFORM=fedora
  - MOLECULE_PLATFORM=ubuntu
services:
  - docker
before_install:
  - sudo apt-get -qq update
  - sudo apt-get install -o Dpkg::Options::="--force-confold" --force-yes -y docker-engine
install:
  - virtualenv --python=$(which python2.7) .venv
  - source .venv/bin/activate
  - pip install --no-deps -r tests/test-requirements.txt
script:
  - ln -sf "${PWD}/tests/${MOLECULE_PLATFORM}/molecule.yml" "${PWD}/molecule.yml"
  - molecule test --driver docker
branches:
  only:
    - master
notifications:
  webhooks: https://galaxy.ansible.com/api/v1/notifications/

---
sudo: required
language: python
env:
  - MOLECULE_PLATFORM=centos
  - MOLECULE_PLATFORM=debian
  - MOLECULE_PLATFORM=fedora
  - MOLECULE_PLATFORM=ubuntu
services:
  - docker
before_install:
  - sudo apt-get -qq update
  - sudo apt-get install -o Dpkg::Options::="--force-confold" --force-yes -y docker-engine
install:
  - virtualenv --python=$(which python2.7) .venv
  - source .venv/bin/activate
  - pip install --no-deps -r tests/test-requirements.txt
script:
  - ln -sf "${PWD}/tests/${MOLECULE_PLATFORM}/molecule.yml" "${PWD}/molecule.yml"
  - molecule test --driver docker
branches:
  only:
    - master
    - /^\d+\.\d+(\.\d+)?(-\S*)?$/
notifications:
  webhooks: https://galaxy.ansible.com/api/v1/notifications/

Add regex for version tags
Add regex for version tags

This will allow Travis CI to sync Ansible Galaxy with the new release
when pushing a tag.
