forked from ecederstrand/exchangelib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
38 lines (32 loc) · 1.13 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
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|b]' )" ]] ; 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|b]' )" ]] ; then pip install git+https://github.com/yaml/pyyaml.git ; 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 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: python tests/__init__.py -q EWSTest.wipe_test_account
python: "3.7"
os: linux