• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1language: python
2dist: xenial
3
4cache:
5  apt: true
6  ccache: true
7  pip: true
8  directories:
9    - $HOME/.cache
10
11env:
12  global:
13    - pip_install_common='pip>=9.0 setuptools>=36.2 wheel>=0.30'
14python:
15  - 2.7
16  - 3.5
17  - 3.6
18  - 3.7
19matrix:
20  fast_finish: true
21install: pip install $pip_install_common 'codecov>=2.0.15' -r requirements-test.txt
22script: script/test -sv && codecov
23
24stages:
25  - test
26  - release
27jobs:
28  include:
29    - stage: test
30      python: pypy
31      dist: trusty
32      install: pip install $pip_install_common 'codecov>=2.0.15' -r requirements-test.txt
33      script: script/test -sv && codecov
34    - stage: test
35      env: _=py2-pep8
36      python: 2.7
37      install: pip install -r requirements-test.txt
38      script: test_group=pep8 script/test
39    - stage: test
40      env: _=py3-pep8
41      python: 3.7
42      install: pip install -r requirements-test.txt
43      script: test_group=pep8 script/test
44    - stage: test
45      env: _-py37-openssl11
46      python: 3.7 # we'll use compiled version but makes Travis look correct
47      install:
48        - deactivate && rm -rf $HOME/virtualenv
49        - source script/compile-py3-openssl11.sh # source to alter PATH
50        - pip install virtualenv && virtualenv $HOME/virtualenv && source $HOME/virtualenv/bin/activate
51        - pip install $pip_install_common -r requirements-test.txt
52      script: script/test -sv
53    - stage: test
54      env: _=py2-package
55      python: 2.7
56      install: pip install $pip_install_common
57      script: test_group=package script/test
58    - stage: test
59      env: _=py3-package
60      python: 3.7
61      install: pip install $pip_install_common
62      script: test_group=package script/test
63    - stage: release
64      if: (branch = master)
65      env: _=pypi-upload-test
66      python: 3.7
67      install: pip install $pip_install_common
68      script: script/release -auto
69      deploy:
70        provider: pypi
71        server: https://test.pypi.org/legacy/
72        user: httplib2.release.test
73        password:
74          secure: "XN3oxobC+26UPiS+F1MvL4c6XtytejZ13SkLXCHfgVDPSASzKqF81CnR4EhsnbfZLvSgGHgSlfY5Jve5HF2VR9GzpJMc6wzcfkkeBg6PeRHuMppIqmuoq7BTw81SZL9X62/mju/vxXs2cHpVkwNTSE7W1JH1bVXPj86oAR9xXo9waRuXcyPGNuSqmOd1NPOMbFmeuz+HeArk2Fz7wwo6H5BJuXjOrEOHWD1rzeRchH901PBUrftm54Id2TIVMARW8jm1saQY2FtPWaBv2v/DJC1fKWMJpcNQ3mmcvrrTFC1IJ00dk9XJfqx5hnsRaergc0UvzHoOGEQKSMdg0PUAkvNohAoCf+3GddPkvk8MaZ+aQlijoK6wp93A5dfTxBVZqdhmEdheolbYiJPunzS60bWvaEv6/D15/xyMiwGamUmF1Tx7UIvvm/zj6tAOBWbNEgLRyvQ0qx2RE95GLtp+RXK4pT+Kig1+cof5hrWODuEl1SSLMBySaNLWO73IN9esZu0X1JS7svnROLRJCAvRjppJYswwCPziP+B8XQDeMrhIDMHNzdbtxOPpBAXpYUE764FkzaUTMsK83Q+ugE3Dx8xtrAzT4M0fdiFv+3QEhSUtfvWsLH9zS9wXC5Px9kPKU3FO8mdUyf7A0bIasvJLNcApDJigKjBukToOIsZVFok="
75        distributions: "sdist bdist_wheel"
76        skip_cleanup: true
77        on:
78          repo: httplib2/httplib2
79    - stage: release
80      if: (tag IS present)
81      env: _=pypi-upload-public
82      python: 3.7
83      install: pip install $pip_install_common
84      script: script/release -auto
85      deploy:
86        provider: pypi
87        user: httplib2.release
88        password:
89          secure: "jZAyMFnmbhYChjsb3gRYfESWlio6pgmWEWBRxtBQXYZf+tzyKVISyHuyWkJvOVTP+lOpp2MTPZ2s1UgxGwfzZ/VE034Cz5iA/C6wafmgtSW+wK+KEJFPseHBBA7Gh4ReiAPi2a+i1UXdsJpFNhv36E9tbTq2sEinbisE2lSEQ0KHadjkc+6pvCjlyhmes7QyM5GviWYlWRNj2OIkT8SUuUcWQt7ZEl6kN82MoMHCaf1YxE/i4JUP3VLomWK3RLZJP356Y4IDkzlVhFU4MJ4ubNtoQ/ECM0uQ+nsHzO0k1uGWdF6mMTna7U5gLqUi9rfCK3bLMeVSo+TUCpjI7HkWDaBgVXGTe5dUMJCDfRgqeYa0GnriI74XYJu8NGjMLv30uO58t9E7VQGo2NrFRJDzKAIHANejWnpUPY3XgoN1rlrh52seMjaU2+jO40EC8HvIqeRRwPwhkqCSV2y+IZT2bOFp2nbMWhkUMsxIX7OXt+sy8GvK/ilMleEl7r0tnudsT7lGdnMwXlttI3CIAFGE7E+0zwnxNiMzQDzo+ILVR7ezrCK9M9xVYKGa3i8gkpSn0Fblnltgg7HaEI8YC3rMZe4iu1t0D6cZZUAAp2ZUo3NCJcZ35iUFBhlFvjVDbe2upJgU6GFgtDLjyzCJiKbz8qLRgMFYgT0CGr512e1jBo0="
90        distributions: "sdist bdist_wheel"
91        skip_cleanup: true
92        on:
93          repo: httplib2/httplib2
94          tags: true
95