forked from aio-libs/aiohttp-cors
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
57 lines (48 loc) · 1.97 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
language: python
python:
- 3.5
- 3.6
# TODO: Use Travis apt addon, when chromium-chromedriver will be supported
# three: https://github.com/travis-ci/apt-package-whitelist/issues/574
before_install:
- sudo apt-get -qq update
- sudo apt-get install -y chromium-browser chromium-chromedriver
install:
- pip install --upgrade pip setuptools wheel
- pip install -Ur requirements-dev.txt
- pip install codecov
before_script:
# Start X-server for Selenium tests.
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3 # give xvfb some time to start
script:
- '[ "$TYPE" != "test" ] || python setup.py test --addopts -v --addopts -s'
- '[ "$TYPE" != "lint" ] || python setup.py check -rms'
after_success:
codecov
env:
global:
- WEBDRIVER_CHROMEDRIVER_PATH=/usr/lib/chromium-browser/chromedriver
matrix:
# PYTHONASYNCIODEBUG environment variable is considered as enabled if it
# is any non empty string.
- TYPE=test
matrix:
include:
# Environment to deploy project on PyPI.
- python: "3.5"
env: DEPLOY_ENV=1
- python: "3.5"
env: TYPE=lint
# Deploy on PyPI all tagged build on master branch.
deploy:
provider: pypi
user: aiohttp-cors-deploy
password:
secure: KViGT/W2vWRWZkV5bZYLiI3v/qXVRGEFAs8G1OMx/OhLvHTj8vO6pZ+hlzLi9zTnBTVHG2xEOrwtjiuHxpJMcDPAul3rn0fwSXy9BRDAeR7B7RIlvLxegMRTnWtsj5x8/VkqQDrPW5YWmuXFb4tDJ+LEkadUrkF9YhJvtUnSQcEOOHVvJa4DekMhZEVM8AKA+7AT9FibWZbJ5s8bTjLke77/eyX7+1DdgC7G++ZesK2HKS1vlM7fN+cWPyUFofXwcEc42rwQwJ5FY2saqTvPN5GBOMpXdaBUmSyYT64447TVFoINbAFuCa3tUeY7ZQpC6B8bHVqEGq+UAujUGU7uhid29CHV03PTFeupTZRscVDkL+IEUjK6Ft+x/B9eStVpKh9d5Yh8INZkdoHVmybJo62k/YHwxAu7ftG+q1bUAHwgKkukXa+ZpmSD2v6BggVUBS6qFwv6tnKpuI0jRsneEUXPmJVUHpv6lPzVRPW/lQDZqxUvESz9w9mitwBiMA7q8jyL9w4zJVKAETjo6llWGQ2wOLjaz3LwuQ8vDOKfWOdvk78W8Usw5amkp2invyidU/2+Y1hlekRuhaMEaUdd4GPmP8beOh7CEXJr5bD3QjbqOpOMi+d+3rYVR0NZMWxawgtUGMBb/8DUNq4sD4Na5G3sGSy+rHMtDAuMOOUlLoU=
distributions: sdist bdist_wheel
on:
tags: true
branch: master
condition: $DEPLOY_ENV = 1