.travis.yml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. sudo: required
  2. dist: trusty
  3. language: python
  4. python:
  5. - '2.7'
  6. - '3.4'
  7. - '3.5'
  8. install:
  9. - pip install --quiet -r ci/requirements.txt
  10. - git clone https://github.com/"${TRAVIS_REPO_SLUG%%/*}"/qubes-builder ~/qubes-builder
  11. script:
  12. - test -z "$TESTS_ONLY" || python setup.py build
  13. - test -z "$TESTS_ONLY" || { cd build/lib; PYTHONPATH=../../test-packages pylint --rcfile=../../ci/pylintrc qubesadmin; }
  14. - test -z "$TESTS_ONLY" || { cd build/lib; ROOTDIR=../.. ../../run-tests; }
  15. - test -n "$TESTS_ONLY" || ~/qubes-builder/scripts/travis-build
  16. env:
  17. - TESTS_ONLY=1 ENABLE_SLOW_TESTS=1
  18. after_success:
  19. - codecov
  20. jobs:
  21. include:
  22. - env: DIST_DOM0=fc25 USE_QUBES_REPO_VERSION=4.0 USE_QUBES_REPO_TESTING=1 TESTS_ONLY=
  23. python: '3.5'
  24. - env: DISTS_VM=fc24 USE_QUBES_REPO_VERSION=4.0 USE_QUBES_REPO_TESTING=1 TESTS_ONLY=
  25. python: '3.5'
  26. - env: DISTS_VM=fc25 USE_QUBES_REPO_VERSION=4.0 USE_QUBES_REPO_TESTING=1 TESTS_ONLY=
  27. python: '3.5'
  28. - env: DISTS_VM=jessie USE_QUBES_REPO_VERSION=4.0 USE_QUBES_REPO_TESTING=1 TESTS_ONLY=
  29. python: '3.4'
  30. - env: DISTS_VM=stretch USE_QUBES_REPO_VERSION=4.0 USE_QUBES_REPO_TESTING=1 TESTS_ONLY=
  31. python: '3.5'
  32. - stage: deploy
  33. python: '3.5'
  34. env: DIST_DOM0=fc25 TESTS_ONLY=
  35. script: ~/qubes-builder/scripts/travis-deploy
  36. # don't build tags which are meant for code signing only
  37. branches:
  38. except:
  39. - /.*_.*/
  40. addons:
  41. apt:
  42. packages:
  43. - debootstrap
  44. # vim: ts=2 sts=2 sw=2 et