File: .travis.yml

package info (click to toggle)
python-exchangelib 3.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 1,496 kB
  • sloc: python: 18,149; makefile: 3
file content (39 lines) | stat: -rw-r--r-- 1,416 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
language: python

os: linux
dist: bionic
sudo: true
python:
- "3.5"
- "3.6"
- "3.7"
- "3.8"
- "nightly"
# - "pypy3"

before_install:
- openssl aes-256-cbc -K $encrypted_ae8487d57299_key -iv $encrypted_ae8487d57299_iv -in settings.yml.enc -out settings.yml -d

install:
- python -m ensurepip --upgrade
# Install master branches of Cython and Cython-built packages if we are testing on nightly since the C API of
# CPython changes often and fixes for Python nightly are slow to reach released versions.
- if [[ "$( python --version | grep '[a|b]' )" ]] ; then python -m pip install git+https://github.com/cython/cython.git ; fi
- if [[ "$( python --version | grep '[a|b]' )" ]] ; then python -m pip install git+https://github.com/lxml/lxml.git ; fi
- if [[ "$( python --version | grep '[a|b]' )" ]] ; then python -m pip install git+https://github.com/yaml/pyyaml.git ; fi
- python -m pip install .
# Install test dependencies manually since we're calling tests/__init__.py directly in the 'script' section
- python -m pip install PyYAML requests_mock psutil coverage coveralls flake8

script:
- coverage run --source=exchangelib setup.py test

after_success: coveralls

jobs:
  include:
    - stage: wipe_test_account
      # Wipe contents of the test account after a complete build, to avoid account going over quota
      script: PYTHONPATH=./ python scripts/wipe_test_account.py
      python: "3.8"
      os: linux