.travis.yml 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. language: python
  2. python:
  3. - '2.7'
  4. notifications:
  5. webhooks:
  6. urls:
  7. - https://webhooks.gitter.im/e/975e807e0314c9fa189c
  8. on_success: always # options: [always|never|change] default: always
  9. on_failure: always # options: [always|never|change] default: always
  10. on_start: never
  11. os:
  12. - linux
  13. env:
  14. global:
  15. - secure: jehlvkFxQbkvr73A0z3HGNC/knZQPKcaXLf6nByGpNE0ZTQKF7Y5KkNfeTcw4st7L7KuRZ1S/1bFtpMXTaplE6G0OtIEC4//SM+z+Dnadn2OY6wHiaapwZmmqDC5qVvcXPdmz/wTRsdrJSGLb2l6kEb91vRGbCCfHHf6Z2cF71U=
  16. - secure: kWdmWAFK4qrA73ONz1X8CJdHSER3bCBXjLfYHYEEMPCZep21bTITUXIfZBlSNN1888SQtYksuloRJmvj7xiY/hf/4lyWiqM3RgWQ+YptJMVOQX+Gara6vm4nGntKQwaXgZF2YHSh+NYwQm1VY6m0n1ye/vfOIJnYfgGTk5qAZYU=
  17. - secure: MzytYRX6HxgBj6Q3efkACTtDed8ZYO+P6UJrDA9IDtvffi8fAFb+wkQtKJrdcvMXNOap6fPe4c0EVGjgL5hFxmgC8yAh5t2YK7OhstAtq0ptKFlOcU24/drrkqoq040sAM/4Lc0nQCvYpz7bH370jzZl69rpbQWttwQR0i1e3Gw=
  18. - secure: RWvIOHSiv2kt6cfZR7MEueiAmC61bWMXAtgsC6gKq1u3BfENfqSBTA/heIy+nlu7AXK1b6hPMZDCHWK09Zz6Klkd9xZ1gkE/AARWseoo9UWgGjmfvqng1S6qpESeX2GnZGR9CuBXTPGhtbYLgtNlxAo+6uZLolz2utW2XNk3Z/Y=
  19. - secure: spivQv+vSJhE+ttn/Z6tANaINqiMSaJSucRqtoXR7PtioVDTOTmmL01Ja6dXuo8Ua5iVFtpZPDzqVpntQLKtjcywSK2zWnC9qbZYDfENr1/yIvfbSRjGeseq0eoY+fFp67FGZV4mIasdC3LOB0lRGOyrsX787fNKVQ8ZH0CRz0o=
  20. - secure: ZcY0TvTQnRCdoFkdbJPfDJJNx91tViwbpiOBkxNEa3u0RN48xkZkii35kNVBaEcVZHcT9C81ctHk4QX+plBkCsoj5GDf25scgcv1j9R9UoN/rIkmyTu1Znmc+3UQ2J+EnGLWVn5xJ7yT/l9NZeLfNbULQRjttwT4j2MBGxezgdM=
  21. matrix:
  22. - OUTLOOK_AUTH=PLAIN GMAIL_AUTH=XOAUTH2
  23. - OUTLOOK_AUTH=LOGIN GMAIL_AUTH=XOAUTH2
  24. matrix:
  25. include:
  26. - os: osx
  27. language: generic
  28. env: PYTHON=2.7.14 OUTLOOK_AUTH=PLAIN GMAIL_AUTH=XOAUTH2
  29. - os: osx
  30. language: generic
  31. env: PYTHON=2.7.14 OUTLOOK_AUTH=LOGIN GMAIL_AUTH=XOAUTH2
  32. allow_failures:
  33. - os: osx
  34. cache: pip
  35. before_install:
  36. - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update && brew install openssl readline;
  37. fi
  38. - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export OSX_BREW_SSLCACERTFILE="/usr/local/etc/openssl/cert.pem";
  39. fi
  40. - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew outdated pyenv || brew upgrade pyenv;
  41. fi
  42. - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install pyenv-virtualenv; fi
  43. - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then pyenv install $PYTHON; fi
  44. - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export PYENV_VERSION="${PYTHON}"; fi
  45. - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export PATH="/Users/travis/.pyenv/shims:${PATH}";
  46. fi
  47. - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then pyenv virtualenv $PYTHON myvenv; fi
  48. - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then pyenv versions; fi
  49. - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then python --version; fi
  50. - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then pyenv version; fi
  51. - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then python --version; fi
  52. - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then python -m pip install -U pip; fi
  53. - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then python -m easy_install -U setuptools;
  54. fi
  55. install:
  56. - pip install -r requirements.txt
  57. - pip install -r tests/requirements.txt
  58. - export PATH=$PATH:.
  59. - python tests/create_conf_file.py
  60. script:
  61. - "./offlineimap.py -c ./oli-travis.conf"
  62. - codecov