Skip to content
.travis.yml 925 B
Newer Older
---
language: python
nimrod's avatar
nimrod committed
python: ["2.7", "3.2"]
nimrod's avatar
nimrod committed
dist: trusty
nimrod's avatar
nimrod committed
group: beta
nimrod's avatar
nimrod committed
services: [docker]
env:
    - platform: openbsd
nimrod's avatar
nimrod committed
      driver: vagrant
    - platform: xenial
nimrod's avatar
nimrod committed
      driver: vagrant
    - driver: docker
      platform: all
nimrod's avatar
nimrod committed
matrix:
    allow_failures:
        - python: "3.2"
nimrod's avatar
nimrod committed
cache:
  - pip
  - directories:
      - $HOME/.pre-commit
  - sudo apt-get update
  - sudo apt-get install -y linux-headers-$(uname -r) virtualbox
  - wget https://releases.hashicorp.com/vagrant/1.9.1/vagrant_1.9.1_x86_64.deb
  - sudo dpkg -i vagrant_1.9.1_x86_64.deb
  - pip install -r tests/requirements.txt | cat
nimrod's avatar
nimrod committed
  - ansible-galaxy install git+file://$(pwd),$(git rev-parse --abbrev-ref HEAD) -p .molecule/roles
  - molecule dependency
nimrod's avatar
nimrod committed
  - pre-commit run --all-files
nimrod's avatar
nimrod committed
  - molecule test --driver $driver --platform $platform
nimrod's avatar
nimrod committed
  webhooks: https://galaxy.ansible.com/api/v1/notifications/
  email: false