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.
 
 
 

75 lines
2.3 KiB

  1. language: python
  2. sudo: false
  3. os:
  4. - linux
  5. python:
  6. - '2.7'
  7. - '3.4'
  8. - '3.5'
  9. install:
  10. - pip -q install -r requirements.txt
  11. - pip -q install -r requirements-dev.txt
  12. script:
  13. - 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
  14. - export PACKAGE_VERSION=$(python -c "from wstools.version import __version__; print(__version__)")
  15. after_success:
  16. - python travis_after_all.py
  17. - export $(cat .to_export_back)
  18. - |
  19. if [ "$BUILD_LEADER" = "YES" ]; then
  20. if [ "$BUILD_AGGREGATE_STATUS" = "others_succeeded" ]; then
  21. echo "All jobs succeeded! PUBLISHING..."
  22. else
  23. echo "Some jobs failed"
  24. fi
  25. fi
  26. - coveralls
  27. - python setup.py sdist bdist_wheel
  28. after_failure:
  29. - python travis_after_all.py
  30. - export $(cat .to_export_back)
  31. - |
  32. if [ "$BUILD_LEADER" = "YES" ]; then
  33. if [ "$BUILD_AGGREGATE_STATUS" = "others_failed" ]; then
  34. echo "All jobs failed"
  35. else
  36. echo "Some jobs failed"
  37. fi
  38. fi
  39. after_script:
  40. - echo leader=$BUILD_LEADER status=$BUILD_AGGREGATE_STATUS
  41. branches:
  42. only:
  43. - master
  44. - develop
  45. before_deploy:
  46. - echo "before deploy..."
  47. deploy:
  48. - provider: releases
  49. api_key:
  50. - secure: "gr9iOcQjdoAyUAim6FWKzJI9MBaJo9XKfGQGu7wdPXUFhg80Rp6GLJsowP+aU94NjXM1UQlVHDAy627WtjBlLH2SvmVEIIr7+UKBopBYuXG5jJ1m3wOZE+4f1Pqe9bqFc1DxgucqE8qF0sC24fIbNM2ToeyYrxrS6RoL2gRrX2I="
  51. file: "dist/wstools-$PACKAGE_VERSION.tar.gz"
  52. skip_cleanup: true
  53. on:
  54. branch: master
  55. condition: "$BUILD_LEADER = YES"
  56. tags: true
  57. - provider: pypi
  58. user: sorin
  59. password:
  60. secure: "E0cjANF7SLBdYrsnWLK8X/xWznqkF0JrP/DVfDazPzUYH6ynFeneyofzNJQPLTLsqe1eKXhuUJ/Sbl+RHFB0ySo/j/7NfYd/9pm8hpUkGCvR09IwtvMLgWKp3k10NWab03o2GOkSJSrLvZofyZBGR40wwu2O9uXPCb2rvucCGbw="
  61. distributions: "sdist bdist_wheel"
  62. on:
  63. branch: master
  64. condition: "$BUILD_LEADER = YES"
  65. - provider: pypi
  66. server: https://testpypi.python.org/pypi
  67. user: sorins
  68. password:
  69. secure: "E0cjANF7SLBdYrsnWLK8X/xWznqkF0JrP/DVfDazPzUYH6ynFeneyofzNJQPLTLsqe1eKXhuUJ/Sbl+RHFB0ySo/j/7NfYd/9pm8hpUkGCvR09IwtvMLgWKp3k10NWab03o2GOkSJSrLvZofyZBGR40wwu2O9uXPCb2rvucCGbw="
  70. distributions: "sdist bdist_wheel"
  71. on:
  72. branch: develop
  73. tags: false
  74. condition: "$BUILD_LEADER = YES"