sudo: required
dist: trusty
language: generic

# TODO : we can combine python language and test multiple python version in matrix here (2 and 3 matching platform version)

env:
  # This will trigger a usual ros catkin build to make sure it still works
  - PURE_PYTHON=false
  # This will trigger python build
  - PURE_PYTHON=true

# This is the same for all builds
before_install:
  # Install ROS. We always need it on system.
  - bash rosutils/install_ros.sh indigo ./
  # Install python 2.7
  - sudo apt-get install python2.7 virtualenvwrapper -y
  - source "/usr/share/virtualenvwrapper/virtualenvwrapper.sh"

# note we test usage only in develspace.
# installspace require system python-six >= 1.9.0 (too high for trusty)
# => there will be no ros indigo deb package for pyros => on indigo, you need to use pyros from pip package via catkin_pip or from source.
install:
  - if [ "$PURE_PYTHON" == "true" ]; then (mkvirtualenv --system-site-packages -r requirements.txt -i . -q python_2.7_ros); fi
  - if [ "$PURE_PYTHON" == "false" ]; then (bash rosutils/build_devel.sh indigo); fi

script:
  - if [ "$PURE_PYTHON" == "true" ]; then (workon python_2.7_ros && python setup.py test); fi
  - if [ "$PURE_PYTHON" == "false" ]; then (bash rosutils/test_devel.sh); fi

notifications:
  email: false

sudo: required
dist: trusty
language: generic

# TODO : we can combine python language and test multiple python version in matrix here (2 and 3 matching platform version)

env:
  # This will trigger a usual ros catkin build to make sure it still works
  - PURE_PYTHON=false
  # This will trigger python build
  - PURE_PYTHON=true

# This is the same for all builds
before_install:
  # Install ROS. We always need it on system.
  - bash rosutils/install_ros.sh indigo ./
  # Install python 2.7
  - sudo apt-get install python2.7 virtualenvwrapper -y
  - source "/usr/share/virtualenvwrapper/virtualenvwrapper.sh"

install:
  - if [ "$PURE_PYTHON" == "true" ]; then (mkvirtualenv --system-site-packages -r requirements.txt -i . -q python_2.7_ros); fi
  - if [ "$PURE_PYTHON" == "false" ]; then (bash rosutils/build_devel.sh indigo && bash rosutils/build_install.sh); fi

script:
  - if [ "$PURE_PYTHON" == "true" ]; then (workon python_2.7_ros && python setup.py test); fi
  - if [ "$PURE_PYTHON" == "false" ]; then (bash rosutils/test_devel.sh && bash rosutils/test_install.sh); fi

notifications:
  email: false

Revert "dropping installspace build. no ros-indigo deb package will be created. requirements are too high for trusty : six >= 1.9"
Revert "dropping installspace build. no ros-indigo deb package will be created. requirements are too high for trusty : six >= 1.9"

This reverts commit 64a0688e6706424c3c9a3742f776fcb73e833fff.
