---
# https://docs.travis-ci.com/user/docker/
#
sudo: required

language: python

services:
  - docker

before_install:
  # - travis_wait 300 docker build -t bio-ansbile:latest -f docker/Dockerfile-local .
  - travis_wait 300 docker build -t bio-ansbile:latest -f docker/Dockerfile-rnasik .
  # - docker run -d bio-ansbile /bin/sh -c "source /etc/profile.d/lmod.sh; module --force try-load BigDataScript; module --force try-load RNAsik-pipe; RNAsik-pipe | grep 'RNAsik version'"

script:
  - docker run -d bio-ansbile /bin/sh -c "source /etc/profile.d/lmod.sh; module --force try-load BigDataScript; module --force try-load RNAsik-pipe; RNAsik-pipe | grep 'RNAsik version'"

# TODO: First do a --syntax-check as per: https://www.jeffgeerling.com/blog/testing-ansible-roles-travis-ci-github

---
# https://docs.travis-ci.com/user/docker/
#
sudo: required

language: python

services:
  - docker

before_install:
  - pip install -U ansible
  # - travis_wait 300 docker build -t bio-ansbile:latest -f docker/Dockerfile-local .
  - travis_wait 300 docker build -t bio-ansbile:latest -f docker/Dockerfile-rnasik .

script:
  - ansible-playbook --syntax-check -c local -i hosts common.yml
  - ansible-playbook --syntax-check -c local -i hosts bio.yml
  - ansible-playbook --syntax-check -c local -i hosts interactive.yml
  - ansible-playbook --syntax-check -c local -i hosts other.yml
  - docker run -d bio-ansbile /bin/sh -c "source /etc/profile.d/lmod.sh; module --force try-load BigDataScript; module --force try-load RNAsik-pipe; RNAsik-pipe | grep 'RNAsik version'"

Add syntax checks to Travis CI tests.
Add syntax checks to Travis CI tests.
