.travis.yml 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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
  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: '2.7'
  24. - stage: deploy
  25. python: '3.5'
  26. env: DIST_DOM0=fc25 TESTS_ONLY=
  27. script: ~/qubes-builder/scripts/travis-deploy
  28. # don't build tags which are meant for code signing only
  29. branches:
  30. except:
  31. - /.*_.*/
  32. addons:
  33. apt:
  34. packages:
  35. - debootstrap
  36. # vim: ts=2 sts=2 sw=2 et