forked from ecederstrand/exchangelib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (36 loc) · 1.33 KB
/
.travis.yml
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
40
41
42
language: python
os: linux
dist: xenial
sudo: true
python:
- "2.7"
- "3.5"
- "3.6"
- "3.7"
- "3.8-dev"
# - "pypy3"
before_install:
- openssl aes-256-cbc -K $encrypted_e7f042a9cf96_key -iv $encrypted_e7f042a9cf96_iv
-in settings.yml.enc -out settings.yml -d
install:
# Only lxml master branch compiles with Python nightly
# - if [[ "$( python --version | grep 'a' )" ]] ; then pip install cython && pip install git+https://github.com/lxml/lxml.git ; fi
# Only PyYAML master branch compiles with Python nightly
# - if [[ "$( python --version | grep 'a' )" ]] ; then pip install git+https://github.com/yaml/pyyaml.git ; fi
# Fix for changed XMLParser signature on Python nightly
- if [[ "$( python --version | grep 'a' )" ]] ; then pip install git+https://github.com/ecederstrand/defusedxml.git@patch-2 ; fi
- pip install .
# Install test dependencies manually since we're calling tests/__init__.py directly in the 'script' section
- pip install PyYAML requests_mock psutil
- pip install coverage
- pip install coveralls
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: python tests/__init__.py -q EWSTest.wipe_test_account
python: "3.6"
os: linux