.travis.yml 1.2 KB

1234567891011121314151617181920212223242526272829
  1. language: python
  2. python:
  3. - '2.6'
  4. - '2.7'
  5. env:
  6. global:
  7. - secure: exbot0LTV/0Wic6ElKCrOZmh2ZrieuGwEqfYKf5rVuwu1sLngYRihh+lBL/hTwc79NSu829pbwiWfsQZrXbk/yvaS7avGR0CLDoipyPxlYa2/rfs/o4OdTZqXv0LcFmmd54j5QBMpWU1S+CYOwNkwas57trrvIpPbzWjMtfYzOU=
  8. install:
  9. - pip install .
  10. - pip install -r requirements.txt
  11. - pip install -r requirements-dev.txt
  12. - sudo curl -L -o /usr/local/bin/orchard https://github.com/orchardup/go-orchard/releases/download/2.0.5/linux
  13. - sudo chmod +x /usr/local/bin/orchard
  14. before_script:
  15. - 'if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then orchard hosts rm -f $TRAVIS_JOB_ID || true; fi'
  16. - 'if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then orchard hosts create $TRAVIS_JOB_ID; fi'
  17. script:
  18. - nosetests tests/unit
  19. - 'if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then script/travis-integration; fi'
  20. after_script:
  21. - 'if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then orchard hosts rm -f $TRAVIS_JOB_ID; fi'
  22. deploy:
  23. provider: pypi
  24. user: orchard
  25. password:
  26. secure: M8UMupCLSsB1hV00Zn6ra8Vg81SCFBpbcRsa0nUw9kgXn9hOCESWYVHTqQ1ksWZOa8z6WMaqYtoosPKXGJQNf0wF/kEVDsMUeaZWOF/PqDkx1EwQ1diVfwlbN4/k0iX+Se7SrZfiWnJiAqiIPqToQipvLlJohqf8WwfPcVvILVE=
  27. on:
  28. tags: true
  29. repo: orchardup/fig