You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

60 lines
1.8 KiB

  1. language: python
  2. sudo: false
  3. os:
  4. - linux
  5. python:
  6. - '2.7'
  7. - '3.3'
  8. - '3.4'
  9. install:
  10. - pip -q install coveralls six autopep8
  11. script:
  12. - curl --silent -Lo travis_after_all.py https://raw.github.com/pycontribs/travis_after_all/master/travis_after_all.py && travis_wait python setup.py prerelease test
  13. - export PACKAGE_VERSION=$(python -c "from wstools.version import __version__; print(__version__)")
  14. after_success:
  15. - python travis_after_all.py
  16. - export $(cat .to_export_back)
  17. - |
  18. if [ "$BUILD_LEADER" = "YES" ]; then
  19. if [ "$BUILD_AGGREGATE_STATUS" = "others_succeeded" ]; then
  20. echo "All jobs succeeded! PUBLISHING..."
  21. else
  22. echo "Some jobs failed"
  23. fi
  24. fi
  25. - coveralls
  26. - python setup.py sdist bdist_wheel
  27. after_failure:
  28. - python travis_after_all.py
  29. - export $(cat .to_export_back)
  30. - |
  31. if [ "$BUILD_LEADER" = "YES" ]; then
  32. if [ "$BUILD_AGGREGATE_STATUS" = "others_failed" ]; then
  33. echo "All jobs failed"
  34. else
  35. echo "Some jobs failed"
  36. fi
  37. fi
  38. after_script:
  39. - echo leader=$BUILD_LEADER status=$BUILD_AGGREGATE_STATUS
  40. branches:
  41. only:
  42. - master
  43. before_deploy:
  44. - echo "before deploy..."
  45. deploy:
  46. - provider: releases
  47. api_key:
  48. - secure: "gr9iOcQjdoAyUAim6FWKzJI9MBaJo9XKfGQGu7wdPXUFhg80Rp6GLJsowP+aU94NjXM1UQlVHDAy627WtjBlLH2SvmVEIIr7+UKBopBYuXG5jJ1m3wOZE+4f1Pqe9bqFc1DxgucqE8qF0sC24fIbNM2ToeyYrxrS6RoL2gRrX2I="
  49. file: "dist/jira-$PACKAGE_VERSION.tar.gz"
  50. skip_cleanup: true
  51. on:
  52. condition: "$BUILD_LEADER = YES"
  53. - provider: pypi
  54. user: sorin
  55. password:
  56. secure: "E0cjANF7SLBdYrsnWLK8X/xWznqkF0JrP/DVfDazPzUYH6ynFeneyofzNJQPLTLsqe1eKXhuUJ/Sbl+RHFB0ySo/j/7NfYd/9pm8hpUkGCvR09IwtvMLgWKp3k10NWab03o2GOkSJSrLvZofyZBGR40wwu2O9uXPCb2rvucCGbw="
  57. distributions: "sdist bdist_wheel"
  58. on:
  59. condition: "$BUILD_LEADER = YES"