---
sudo: required
language: python
# Currently failing with Python3.
python: 2.7

cache: pip

services:
  - docker

branches:
  only:
  - travis-experiments
  - dev
  - customized

# Manual build matrix.
# See https://github.com/travis-ci/travis-ci/issues/1519
env:
  - MOLECULE_DISTRO=ubuntu1604 SCENARIO=default
  - MOLECULE_DISTRO=ubuntu1604 SCENARIO=wordpress-deploy
  - MOLECULE_DISTRO=ubuntu1604 SCENARIO=drupal-deploy-7

install:
  # Use `--pre` flag to get molecule >= 2.20.
  - pip install molecule docker --pre

script:
  - "travis_wait 25 molecule -c molecule/base-config.yml test -s $SCENARIO"

---
sudo: required
language: python
# Currently failing with Python3.
python: 2.7

cache: pip

services:
  - docker

branches:
  only:
  - travis-experiments
  - dev
  - customized

# Manual build matrix.
# See https://github.com/travis-ci/travis-ci/issues/1519
env:
  - MOLECULE_DISTRO=ubuntu1604 SCENARIO=default
  - MOLECULE_DISTRO=ubuntu1604 SCENARIO=wordpress-deploy
  - MOLECULE_DISTRO=ubuntu1604 SCENARIO=drupal-deploy-7

install:
  - pip install molecule docker

script:
  - "travis_wait 25 molecule -c molecule/base-config.yml test -s $SCENARIO"

Remove `--pre` flag for `molecule` installation
Remove `--pre` flag for `molecule` installation

Molecule `2.20.1` installs on Python2.7 now.

Using `--pre` is resulting in Ansible 2.8-devel, and Molecule currently
doesn't work well with Ansible 2.8-devel.

See https://github.com/ansible/molecule/issues/1727
