From 8876c42800e480659990afadaa048c671381aeef Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Tue, 3 Jan 2017 10:30:06 +0200 Subject: [PATCH] - Build on my supported platforms (some don't have properly working Vagrant boxes so they're allowed to fail). --- .travis.yml | 18 +++++++++++++++++- molecule.yml | 10 +++++++++- tasks/main.yml | 2 +- tests/playbook.yml | 2 +- 4 files changed, 28 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index bb77032..085dfb6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,15 +6,31 @@ sudo: True group: beta services: [docker] env: - - platform: openbsd + - platform: openbsd60 + driver: vagrant + - &openbsd59 + platform: openbsd59 driver: vagrant - platform: xenial driver: vagrant + - platform: trusty + driver: vagrant + - &jessie + platform: jessie + driver: vagrant + - &wheezy + platform: wheezy + driver: vagrant - driver: docker platform: all matrix: + fast_finish: True allow_failures: - python: "3.2" + - env: + - *openbsd59 + - *jessie + - *wheezy cache: - pip - directories: diff --git a/molecule.yml b/molecule.yml index 9b2da0d..76623fb 100644 --- a/molecule.yml +++ b/molecule.yml @@ -16,10 +16,18 @@ vagrant: options: cpus: 1 platforms: - - name: openbsd + - name: openbsd60 box: fnichol/openbsd-6.0-i386 + - name: openbsd59 + box: fnichol/openbsd-5.9-i386 - name: xenial box: ubuntu/xenial32 + - name: trusty + box: ubuntu/trusty32 + - name: jessie + box: debian/jessie32 + - name: wheezy + box: debian/wheezy32 instances: - name: example options: diff --git a/tasks/main.yml b/tasks/main.yml index 6784821..811069e 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -5,4 +5,4 @@ assert: that: - ansible_os_family in ['OpenBSD', 'Debian'] - - ansible_distribution_release in ['6.0', 'xenial'] + - ansible_distribution_release in ['6.0', '5.9', 'xenial', 'trusty', 'jessie', 'wheezy'] diff --git a/tests/playbook.yml b/tests/playbook.yml index d372ad3..10beeb2 100644 --- a/tests/playbook.yml +++ b/tests/playbook.yml @@ -1,5 +1,5 @@ --- -- hosts: example-openbsd +- hosts: example-openbsd* gather_facts: false roles: [openbsd-bootstrap] -- GitLab