2018-03-04 22:35:41 +01:00
|
|
|
language: python
|
|
|
|
python:
|
2018-03-05 23:55:47 +01:00
|
|
|
- '2.7'
|
|
|
|
- '3.6'
|
2018-03-06 01:13:44 +01:00
|
|
|
notifications:
|
|
|
|
webhooks:
|
|
|
|
urls:
|
|
|
|
- https://webhooks.gitter.im/e/975e807e0314c9fa189c
|
|
|
|
on_success: always # options: [always|never|change] default: always
|
|
|
|
on_failure: always # options: [always|never|change] default: always
|
|
|
|
on_start: never
|
2018-03-04 22:35:41 +01:00
|
|
|
os:
|
2018-03-05 23:55:47 +01:00
|
|
|
- linux
|
2018-03-04 22:35:41 +01:00
|
|
|
env:
|
|
|
|
global:
|
2018-03-05 23:55:47 +01:00
|
|
|
- secure: jehlvkFxQbkvr73A0z3HGNC/knZQPKcaXLf6nByGpNE0ZTQKF7Y5KkNfeTcw4st7L7KuRZ1S/1bFtpMXTaplE6G0OtIEC4//SM+z+Dnadn2OY6wHiaapwZmmqDC5qVvcXPdmz/wTRsdrJSGLb2l6kEb91vRGbCCfHHf6Z2cF71U=
|
|
|
|
- secure: kWdmWAFK4qrA73ONz1X8CJdHSER3bCBXjLfYHYEEMPCZep21bTITUXIfZBlSNN1888SQtYksuloRJmvj7xiY/hf/4lyWiqM3RgWQ+YptJMVOQX+Gara6vm4nGntKQwaXgZF2YHSh+NYwQm1VY6m0n1ye/vfOIJnYfgGTk5qAZYU=
|
|
|
|
- secure: MzytYRX6HxgBj6Q3efkACTtDed8ZYO+P6UJrDA9IDtvffi8fAFb+wkQtKJrdcvMXNOap6fPe4c0EVGjgL5hFxmgC8yAh5t2YK7OhstAtq0ptKFlOcU24/drrkqoq040sAM/4Lc0nQCvYpz7bH370jzZl69rpbQWttwQR0i1e3Gw=
|
|
|
|
- secure: RWvIOHSiv2kt6cfZR7MEueiAmC61bWMXAtgsC6gKq1u3BfENfqSBTA/heIy+nlu7AXK1b6hPMZDCHWK09Zz6Klkd9xZ1gkE/AARWseoo9UWgGjmfvqng1S6qpESeX2GnZGR9CuBXTPGhtbYLgtNlxAo+6uZLolz2utW2XNk3Z/Y=
|
|
|
|
- secure: spivQv+vSJhE+ttn/Z6tANaINqiMSaJSucRqtoXR7PtioVDTOTmmL01Ja6dXuo8Ua5iVFtpZPDzqVpntQLKtjcywSK2zWnC9qbZYDfENr1/yIvfbSRjGeseq0eoY+fFp67FGZV4mIasdC3LOB0lRGOyrsX787fNKVQ8ZH0CRz0o=
|
|
|
|
- secure: ZcY0TvTQnRCdoFkdbJPfDJJNx91tViwbpiOBkxNEa3u0RN48xkZkii35kNVBaEcVZHcT9C81ctHk4QX+plBkCsoj5GDf25scgcv1j9R9UoN/rIkmyTu1Znmc+3UQ2J+EnGLWVn5xJ7yT/l9NZeLfNbULQRjttwT4j2MBGxezgdM=
|
2018-03-04 22:35:41 +01:00
|
|
|
matrix:
|
|
|
|
- OUTLOOK_AUTH=PLAIN GMAIL_AUTH=XOAUTH2
|
|
|
|
- OUTLOOK_AUTH=LOGIN GMAIL_AUTH=XOAUTH2
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- os: osx
|
|
|
|
language: generic
|
|
|
|
env: PYTHON=2.7.14 OUTLOOK_AUTH=PLAIN GMAIL_AUTH=XOAUTH2
|
|
|
|
- os: osx
|
|
|
|
language: generic
|
|
|
|
env: PYTHON=2.7.14 OUTLOOK_AUTH=LOGIN GMAIL_AUTH=XOAUTH2
|
|
|
|
- os: osx
|
|
|
|
language: generic
|
|
|
|
env: PYTHON=3.6.4 OUTLOOK_AUTH=PLAIN GMAIL_AUTH=XOAUTH2
|
|
|
|
- os: osx
|
|
|
|
language: generic
|
|
|
|
env: PYTHON=3.6.4 OUTLOOK_AUTH=LOGIN GMAIL_AUTH=XOAUTH2
|
|
|
|
allow_failures:
|
2018-03-05 23:55:47 +01:00
|
|
|
- os: osx
|
2018-03-04 22:35:41 +01:00
|
|
|
cache: pip
|
|
|
|
before_install:
|
2018-03-05 23:55:47 +01:00
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update && brew install openssl readline;
|
|
|
|
fi
|
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export OSX_BREW_SSLCACERTFILE="/usr/local/etc/openssl/cert.pem";
|
|
|
|
fi
|
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew outdated pyenv || brew upgrade pyenv;
|
|
|
|
fi
|
2018-03-04 22:35:41 +01:00
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install pyenv-virtualenv; fi
|
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then pyenv install $PYTHON; fi
|
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export PYENV_VERSION="${PYTHON}"; fi
|
2018-03-05 23:55:47 +01:00
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export PATH="/Users/travis/.pyenv/shims:${PATH}";
|
|
|
|
fi
|
2018-03-04 22:35:41 +01:00
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then pyenv virtualenv $PYTHON myvenv; fi
|
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then pyenv versions; fi
|
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then python --version; fi
|
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then pyenv version; fi
|
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then python --version; fi
|
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then python -m pip install -U pip; fi
|
2018-03-05 23:55:47 +01:00
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then python -m easy_install -U setuptools;
|
|
|
|
fi
|
2018-03-04 22:35:41 +01:00
|
|
|
install:
|
|
|
|
- pip install -r requirements.txt
|
|
|
|
- pip install -r tests/requirements.txt
|
|
|
|
- export PATH=$PATH:.
|
|
|
|
- python tests/create_conf_file.py
|
|
|
|
script:
|
2018-03-05 23:55:47 +01:00
|
|
|
- "./offlineimap.py -c ./oli-travis.conf"
|
2018-03-04 22:35:41 +01:00
|
|
|
- codecov
|