diff options
author | Sol Jerome <sol.jerome@gmail.com> | 2017-08-18 15:01:32 -0500 |
---|---|---|
committer | Sol Jerome <sol.jerome@gmail.com> | 2017-08-18 15:01:32 -0500 |
commit | e193079d1779e4d66d80882e6f1c3ff9ba05619b (patch) | |
tree | b47f262f3b7d57a1ddeefd0f2aeba3bb35539d18 /.travis.yml | |
parent | cd0f5f5f62376f7dc64e5c5c7d59a7c6bfcb918f (diff) | |
parent | 0fdabbcb4668d5f70f76c08a6e3216c5542e7457 (diff) | |
download | bcfg2-e193079d1779e4d66d80882e6f1c3ff9ba05619b.tar.gz bcfg2-e193079d1779e4d66d80882e6f1c3ff9ba05619b.tar.bz2 bcfg2-e193079d1779e4d66d80882e6f1c3ff9ba05619b.zip |
Merge branch 'feature/travis-container' of https://github.com/AlexanderS/bcfg2
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 70 |
1 files changed, 62 insertions, 8 deletions
diff --git a/.travis.yml b/.travis.yml index b868e83b1..af365b9d9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,28 +1,82 @@ +sudo: false +dist: trusty language: python + +packages: &build_deps_optional + - swig + - libxml2-utils + - yum + - libaugeas-dev + - augeas-lenses + - libacl1-dev + - libssl-dev + matrix: include: + - env: PYTHON=2.4 NOSE_EXCLUDE_DIRS=testsuite/Testsrc/Testlib/TestServer + addons: + apt: + sources: [deadsnakes] + packages: [python2.4, python2.4-dev] + - env: PYTHON=2.5 NOSE_EXCLUDE_DIRS=testsuite/Testsrc/Testlib/TestServer + addons: + apt: + sources: [deadsnakes] + packages: [python2.5, python2.5-dev, libbluetooth-dev] + - python: "2.6" - env: WITH_OPTIONAL_DEPS=no TEST_SPHINX=no - python: "2.6" - env: WITH_OPTIONAL_DEPS=yes TEST_SPHINX=no - - python: "2.7_with_system_site_packages" - env: WITH_OPTIONAL_DEPS=no TEST_SPHINX=no - - python: "2.7_with_system_site_packages" - env: WITH_OPTIONAL_DEPS=yes TEST_SPHINX=yes + env: WITH_OPTIONAL_DEPS=yes + addons: + apt: + packages: *build_deps_optional + + - python: "2.7" + - python: "2.7" + env: WITH_OPTIONAL_DEPS=yes WITH_SYSTEM_SITE_PACKAGES=yes TEST_SPHINX=yes + addons: + apt: + packages: [*build_deps_optional, python-gamin, python-selinux] + + - python: "3.5" + env: WITH_OPTIONAL_DEPS=yes + addons: + apt: + packages: *build_deps_optional + + allow_failures: + - python: "3.5" + + fast_finish: true + +before_install: + - testsuite/prepare-python.sh + - if test -d "$HOME/custom-virtualenv/"; then source "$HOME/custom-virtualenv/bin/activate"; fi install: - testsuite/install.sh - pip install -e . script: - - nosetests testsuite + - testsuite/test.sh after_failure: - pip freeze + branches: except: - maint-1.2 - 1.1.0-stable + notifications: - email: chris.a.st.pierre@gmail.com irc: channels: - "irc.freenode.org#bcfg2" use_notice: true + +cache: + directories: + - $HOME/.cache/pip + - $HOME/.cache/wheels + - $HOME/.cache/xml + +before_cache: + - rm -f $HOME/.cache/pip/log/debug.log + - rm -f $HOME/.cache/xml/catalog.xml |