language: python

# Build inside virtualbox rather than docker containers. This means the build
# is slower to start, but the upside is that sudo is supported. In particular
# this means that we can use apt-get to install the keyutils dependency:
sudo: true

python:
  - "2.6"
  - "2.7"
  - "3.3"
  - "3.4"
  - "3.5"
  - "3.6"

before_install:
  # Installation step for non-python dependencies. The virtualenv is not
  # activated at this point.
  - sudo apt-get install libkeyutils-dev

install:
  # Installation step for the python package itself:
  - python setup.py install

script:
  - python test/keyutils_test.py

language: python

python:
  - "2.6"
  - "2.7"
  - "3.3"
  - "3.4"
  - "3.5"
  - "3.6"

# Build inside docker containers instead of virtual machines. These are
# faster, start quicker and support caching. Only downside: sudo is not
# supported.
sudo: false

# Dependencies can be installed as follows. This works only for packages
# whitelisted on https://github.com/travis-ci/apt-package-whitelist:
addons:
  apt:
    packages:
    - libkeyutils-dev

install:
  # Installation step for the python package itself:
  - python setup.py install

script:
  - python test/keyutils_test.py

Use (faster) docker based containers for Travis
Use (faster) docker based containers for Travis

Signed-off-by: Thomas Gläßle <f9056a8f57616b76561681f7cd36a6120b98b1ec@gmx.de>
