language: python
dist: trusty
sudo: required

cache: pip

services:
 - docker

python: 3.6
env:
 - TOX_ENV=integration_tests-docker
   EXTRA_ARGS="-n1"
   CODECOV=integration
 - TOX_ENV=integration_tests_with_jjb_trunk-docker
   EXTRA_ARGS="-n1"
 - TOX_ENV=integration_tests-not_docker
   CODECOV=integration
 - TOX_ENV=integration_tests_with_jjb_trunk-not_docker
 - TOX_ENV=py36
   CODECOV=unit
 - TOX_ENV=lint
 - TOX_ENV=mypy
 - TOX_ENV=docs

matrix:
    include:
        - python: 3.5-dev
          env: TOX_ENV=py35

install:
 - pip install codecov tox

script:
 - case $TOX_ENV in integration_tests*-docker) docker pull jenkins/jenkins ;; esac
 - tox -e $TOX_ENV -- $EXTRA_ARGS
 - if [ -n "$CODECOV" ]; then codecov --flags $CODECOV; fi

language: python
dist: trusty
sudo: required

cache: pip

services:
 - docker

python: 3.6
env:
 - TOX_ENV=integration_tests-docker
   DOCKER_CONTAINER=jenkins/jenkins
   EXTRA_ARGS="-n1"
   CODECOV=integration
 - TOX_ENV=integration_tests-docker
   DOCKER_CONTAINER=jenkins/jenkins:lts
   EXTRA_ARGS="-n1 --jenkins-docker jenkins/jenkins:lts"
 - TOX_ENV=integration_tests_with_jjb_trunk-docker
   DOCKER_CONTAINER=jenkins/jenkins
   EXTRA_ARGS="-n1"
 - TOX_ENV=integration_tests-not_docker
   CODECOV=integration
 - TOX_ENV=integration_tests_with_jjb_trunk-not_docker
 - TOX_ENV=py36
   CODECOV=unit
 - TOX_ENV=lint
 - TOX_ENV=mypy
 - TOX_ENV=docs

matrix:
    include:
        - python: 3.5-dev
          env: TOX_ENV=py35

install:
 - pip install codecov tox

script:
 - case $TOX_ENV in integration_tests*-docker) docker pull $DOCKER_CONTAINER ;; esac
 - tox -e $TOX_ENV -- $EXTRA_ARGS
 - if [ -n "$CODECOV" ]; then codecov --flags $CODECOV; fi

Add Travis testing against Jenkins LTS release
Add Travis testing against Jenkins LTS release
