sudo: required
language: python
python:
    - "2.7"

env:
    global:
        - DCMTK_VERSION="dcmtk-3.6.1_20150924"
        - DCMTK_DB_DIR="dcmtk_dicom_db"
        - TESTDATA_DIR="testdata"
        - ORTHANC_VERSION="Orthanc-1.1.0"
        - ORTHANC_BUILD="${ORTHANC_VERSION}Build"

cache:
    pip: true
    directories:
        - $DCMTK_VERSION
        - $DCMTK_DB_DIR
        - $TESTDATA_DIR
        - $ORTHANC_BUILD

install:
    - pip install .
    - pip install -U -r requirements-dev.txt
    - ./test/install_deps.sh
# Orthanc requirements
    - sudo apt-get update
    - sudo apt-get install build-essential unzip cmake mercurial
      uuid-dev libcurl4-openssl-dev liblua5.1-0-dev
      libgtest-dev libpng-dev libsqlite3-dev libssl-dev libjpeg-dev
      zlib1g-dev libdcmtk2-dev libboost1.48-all-dev libwrap0-dev
      libcharls-dev

script:
    - ./test/test.sh
    - ./test/lint.sh

after_success:
# Split out build steps to script to avoid yml parsing issues of the commands.
- ./docker/build-trigger.sh Tag "${TRAVIS_TAG}" "${BUILD_TRIGGER_URL}"

sudo: required
language: python
python:
    - "2.7"

env:
    global:
        - DCMTK_VERSION="dcmtk-3.6.1_20150924"
        - DCMTK_DB_DIR="dcmtk_dicom_db"
        - TESTDATA_DIR="testdata"
        - ORTHANC_VERSION="Orthanc-1.1.0"
        - ORTHANC_BUILD="${ORTHANC_VERSION}Build"

cache:
    pip: true
    directories:
        - $DCMTK_VERSION
        - $DCMTK_DB_DIR
        - $TESTDATA_DIR
        - $ORTHANC_BUILD

install:
    - pip install .
    - pip install -U -r requirements-dev.txt
# Orthanc requirements
    - sudo apt-get update
    - sudo apt-get install build-essential unzip cmake mercurial
      uuid-dev libcurl4-openssl-dev liblua5.1-0-dev
      libgtest-dev libpng-dev libsqlite3-dev libssl-dev libjpeg-dev
      zlib1g-dev libdcmtk2-dev libboost1.48-all-dev libwrap0-dev
      libcharls-dev
# Non-package Dep Install
      - ./test/install_deps.sh

script:
    - ./test/test.sh
    - ./test/lint.sh

after_success:
# Split out build steps to script to avoid yml parsing issues of the commands.
- ./docker/build-trigger.sh Tag "${TRAVIS_TAG}" "${BUILD_TRIGGER_URL}"

Move the non-package dependency install to end
Move the non-package dependency install to end
