sudo: required
dist: trusty
language: python
python:
  - "2.7"
  - "3.3"
  - "3.4"
  - "3.5"
  - "3.6"
before_install:
  - sudo apt-get update
  - sudo apt-get install -y libdbus-glib-1-dev
install:
  - which python3.3-config && sed -i "s|not getvar('Py_ENABLE_SHARED')|True|" $(which python3.3-config) || true
  - sed -i "s|not getvar('Py_ENABLE_SHARED')|True|" $(which python)-config || true
  - pip install dbus-python cryptography
before_script:
  - git clone git://git.gnome.org/libsecret.git
script:
  - dbus-launch --exit-with-session python tests/run_tests.py libsecret/libsecret/mock-service-normal.py
  - dbus-launch --exit-with-session python tests/run_tests.py libsecret/libsecret/mock-service-only-plain.py

sudo: false
dist: trusty
language: python
python:
  - "2.7"
  - "3.3"
  - "3.4"
  - "3.5"
  - "3.6"
addons:
  apt:
    packages:
    - dbus-x11
    - libdbus-glib-1-dev
install:
  - sed -i "s|not getvar('Py_ENABLE_SHARED')|True|" /opt/python/3.3.6/bin/python3.3-config || true
  - sed -i "s|not getvar('Py_ENABLE_SHARED')|True|" $(which python)-config || true
  - PATH=/opt/python/3.3.6/bin/:$PATH pip install cryptography dbus-python
before_script:
  - git clone git://git.gnome.org/libsecret.git
script:
  - export PYTHONPATH=/opt/python/3.3.6/lib/python3.3/site-packages/
  - dbus-launch --exit-with-session python tests/run_tests.py libsecret/libsecret/mock-service-normal.py
  - dbus-launch --exit-with-session python tests/run_tests.py libsecret/libsecret/mock-service-only-plain.py

Switch Travis to container-based infrastructure
Switch Travis to container-based infrastructure

See https://docs.travis-ci.com/user/migrating-from-legacy/.
