Paul Kehrer | 465e80e | 2017-06-08 22:08:36 -1000 | [diff] [blame] | 1 | dist: trusty |
Paul Kehrer | bb5c3a9 | 2015-04-13 10:55:33 -0400 | [diff] [blame] | 2 | sudo: false |
Jean-Paul Calderone | 7166c8b | 2014-01-10 14:40:35 -0500 | [diff] [blame] | 3 | language: python |
Alex Gaynor | e608e62 | 2015-07-03 12:21:14 -0400 | [diff] [blame] | 4 | |
5 | cache: | ||||
6 | directories: | ||||
Alex Gaynor | be0aef7 | 2016-06-04 18:43:52 -0700 | [diff] [blame] | 7 | - $HOME/.cache/pip |
Alex Gaynor | e608e62 | 2015-07-03 12:21:14 -0400 | [diff] [blame] | 8 | |
Hynek Schlawack | 4c27243 | 2015-05-14 13:39:40 +0200 | [diff] [blame] | 9 | env: |
10 | global: | ||||
11 | - LC_ALL=en_US.UTF-8 | ||||
Jean-Paul Calderone | 7166c8b | 2014-01-10 14:40:35 -0500 | [diff] [blame] | 12 | |
Paul Kehrer | 9bf3f5c | 2014-03-13 22:43:54 -0400 | [diff] [blame] | 13 | matrix: |
14 | include: | ||||
Paul Kehrer | bb5c3a9 | 2015-04-13 10:55:33 -0400 | [diff] [blame] | 15 | - language: generic |
16 | os: osx | ||||
Paul Kehrer | 1f9c5d1 | 2019-01-21 12:43:54 -0600 | [diff] [blame] | 17 | osx_image: xcode10.1 |
Alex Gaynor | bf01287 | 2016-06-04 13:18:39 -0700 | [diff] [blame] | 18 | env: TOXENV=py27 |
Alex Gaynor | 5af32d0 | 2016-09-24 01:52:21 -0400 | [diff] [blame] | 19 | - language: generic |
20 | os: osx | ||||
Paul Kehrer | 1f9c5d1 | 2019-01-21 12:43:54 -0600 | [diff] [blame] | 21 | osx_image: xcode10.1 |
Alex Gaynor | 5af32d0 | 2016-09-24 01:52:21 -0400 | [diff] [blame] | 22 | env: TOXENV=py27 OPENSSL=1.1.0 |
Jeremy Lainé | 1ae7cb6 | 2018-03-21 14:49:42 +0100 | [diff] [blame] | 23 | - python: "2.7" # these are just to make travis's UI a bit prettier |
Paul Kehrer | bb5c3a9 | 2015-04-13 10:55:33 -0400 | [diff] [blame] | 24 | env: TOXENV=py27 |
Paul Kehrer | 95e2b07 | 2015-04-13 15:50:18 -0400 | [diff] [blame] | 25 | - python: "3.4" |
Paul Kehrer | bb5c3a9 | 2015-04-13 10:55:33 -0400 | [diff] [blame] | 26 | env: TOXENV=py34 |
Hynek Schlawack | 5ab4056 | 2015-09-22 09:39:03 +0200 | [diff] [blame] | 27 | - python: "3.5" |
28 | env: TOXENV=py35 | ||||
Hynek Schlawack | 1089ed2 | 2017-01-30 12:11:14 +0100 | [diff] [blame] | 29 | - python: "3.6" |
30 | env: TOXENV=py36 | ||||
Alex Gaynor | 0f82c1f | 2018-07-04 11:34:20 -0400 | [diff] [blame] | 31 | - python: "3.7" |
32 | env: TOXENV=py37 | ||||
33 | dist: xenial | ||||
34 | sudo: true | ||||
Jeremy Lainé | 57c2f03 | 2018-03-21 16:02:10 +0100 | [diff] [blame] | 35 | - python: "pypy" |
36 | env: TOXENV=pypy | ||||
37 | - python: "pypy3" | ||||
38 | env: TOXENV=pypy3 | ||||
Hynek Schlawack | 961ff48 | 2015-05-04 18:01:58 +0200 | [diff] [blame] | 39 | |
Jean-Paul Calderone | a2d7e09 | 2014-04-17 10:07:34 -0400 | [diff] [blame] | 40 | # Also run the tests against cryptography master. |
Paul Kehrer | 95e2b07 | 2015-04-13 15:50:18 -0400 | [diff] [blame] | 41 | - python: "2.7" |
Hynek Schlawack | 9f925dc | 2015-05-04 17:41:57 +0200 | [diff] [blame] | 42 | env: TOXENV=py27-cryptographyMaster |
Paul Kehrer | 95e2b07 | 2015-04-13 15:50:18 -0400 | [diff] [blame] | 43 | - python: "3.4" |
Hynek Schlawack | 9f925dc | 2015-05-04 17:41:57 +0200 | [diff] [blame] | 44 | env: TOXENV=py34-cryptographyMaster |
Hynek Schlawack | 5ab4056 | 2015-09-22 09:39:03 +0200 | [diff] [blame] | 45 | - python: "3.5" |
46 | env: TOXENV=py35-cryptographyMaster | ||||
Hynek Schlawack | 1089ed2 | 2017-01-30 12:11:14 +0100 | [diff] [blame] | 47 | - python: "3.6" |
48 | env: TOXENV=py36-cryptographyMaster | ||||
Alex Gaynor | 0f82c1f | 2018-07-04 11:34:20 -0400 | [diff] [blame] | 49 | - python: "3.7" |
50 | env: TOXENV=py37-cryptographyMaster | ||||
51 | dist: xenial | ||||
52 | sudo: true | ||||
Jeremy Lainé | 57c2f03 | 2018-03-21 16:02:10 +0100 | [diff] [blame] | 53 | - python: "pypy" |
54 | env: TOXENV=pypy-cryptographyMaster | ||||
55 | - python: "pypy3" | ||||
56 | env: TOXENV=pypy3-cryptographyMaster | ||||
Jean-Paul Calderone | a2d7e09 | 2014-04-17 10:07:34 -0400 | [diff] [blame] | 57 | |
Hynek Schlawack | 73412e5 | 2016-03-16 13:37:05 +0100 | [diff] [blame] | 58 | # And current minimum cryptography version. |
Hynek Schlawack | 2a91ba3 | 2016-01-31 14:18:54 +0100 | [diff] [blame] | 59 | - python: "2.7" |
Hynek Schlawack | 73412e5 | 2016-03-16 13:37:05 +0100 | [diff] [blame] | 60 | env: TOXENV=py27-cryptographyMinimum |
Hynek Schlawack | 2a91ba3 | 2016-01-31 14:18:54 +0100 | [diff] [blame] | 61 | - python: "3.4" |
Hynek Schlawack | 73412e5 | 2016-03-16 13:37:05 +0100 | [diff] [blame] | 62 | env: TOXENV=py34-cryptographyMinimum |
Hynek Schlawack | 2a91ba3 | 2016-01-31 14:18:54 +0100 | [diff] [blame] | 63 | - python: "3.5" |
Hynek Schlawack | 73412e5 | 2016-03-16 13:37:05 +0100 | [diff] [blame] | 64 | env: TOXENV=py35-cryptographyMinimum |
Hynek Schlawack | 1089ed2 | 2017-01-30 12:11:14 +0100 | [diff] [blame] | 65 | - python: "3.6" |
66 | env: TOXENV=py36-cryptographyMinimum | ||||
Alex Gaynor | 0f82c1f | 2018-07-04 11:34:20 -0400 | [diff] [blame] | 67 | - python: "3.7" |
68 | env: TOXENV=py37-cryptographyMinimum | ||||
69 | dist: xenial | ||||
70 | sudo: true | ||||
Jeremy Lainé | 57c2f03 | 2018-03-21 16:02:10 +0100 | [diff] [blame] | 71 | - python: "pypy" |
72 | env: TOXENV=pypy-cryptographyMinimum | ||||
73 | - python: "pypy3" | ||||
74 | env: TOXENV=pypy3-cryptographyMinimum | ||||
Hynek Schlawack | 2a91ba3 | 2016-01-31 14:18:54 +0100 | [diff] [blame] | 75 | |
76 | |||||
Cory Benfield | d296b1b | 2016-03-14 15:09:19 +0000 | [diff] [blame] | 77 | # Make sure we don't break Twisted or urllib3 |
Hynek Schlawack | 8ff2ad9 | 2015-10-19 17:03:35 +0200 | [diff] [blame] | 78 | - python: "2.7" |
Hynek Schlawack | a53fb7a | 2015-10-21 14:07:27 +0200 | [diff] [blame] | 79 | env: TOXENV=py27-twistedMaster |
Cory Benfield | d296b1b | 2016-03-14 15:09:19 +0000 | [diff] [blame] | 80 | - python: "3.5" |
81 | env: TOXENV=py35-urllib3Master | ||||
Hynek Schlawack | 8ff2ad9 | 2015-10-19 17:03:35 +0200 | [diff] [blame] | 82 | |
83 | |||||
Hynek Schlawack | 5936519 | 2015-05-05 18:44:49 +0200 | [diff] [blame] | 84 | # Meta |
85 | - python: "2.7" | ||||
86 | env: TOXENV=check-manifest | ||||
87 | |||||
88 | - python: "2.7" | ||||
89 | env: TOXENV=pypi-readme | ||||
90 | |||||
Laurens Van Houtven | 5ffdcf5 | 2015-05-13 08:10:24 -0700 | [diff] [blame] | 91 | - python: "2.7" |
Laurens Van Houtven | 8aea694 | 2015-05-18 10:55:33 -0700 | [diff] [blame] | 92 | env: TOXENV=flake8 |
Hynek Schlawack | 5936519 | 2015-05-05 18:44:49 +0200 | [diff] [blame] | 93 | |
Laurens Van Houtven | dde3a8b | 2015-05-15 09:48:30 -0700 | [diff] [blame] | 94 | - python: "2.7" |
Laurens Van Houtven | ecb8c9c | 2015-05-26 10:46:29 -0700 | [diff] [blame] | 95 | env: TOXENV=docs |
Hynek Schlawack | b3b2765 | 2015-07-03 16:50:27 +0200 | [diff] [blame] | 96 | |
Hynek Schlawack | aa86121 | 2016-03-13 13:53:48 +0100 | [diff] [blame] | 97 | # Let the cryptography master builds fail because they might be caused by |
98 | # cryptography changes that are beyond our control. | ||||
Paul Kehrer | 9bf3f5c | 2014-03-13 22:43:54 -0400 | [diff] [blame] | 99 | allow_failures: |
Hynek Schlawack | 9f925dc | 2015-05-04 17:41:57 +0200 | [diff] [blame] | 100 | - env: TOXENV=py27-cryptographyMaster |
Hynek Schlawack | 9f925dc | 2015-05-04 17:41:57 +0200 | [diff] [blame] | 101 | - env: TOXENV=py34-cryptographyMaster |
Hynek Schlawack | 5ab4056 | 2015-09-22 09:39:03 +0200 | [diff] [blame] | 102 | - env: TOXENV=py35-cryptographyMaster |
Hynek Schlawack | 1089ed2 | 2017-01-30 12:11:14 +0100 | [diff] [blame] | 103 | - env: TOXENV=py36-cryptographyMaster |
Alex Gaynor | 0f82c1f | 2018-07-04 11:34:20 -0400 | [diff] [blame] | 104 | - env: TOXENV=py37-cryptographyMaster |
Hynek Schlawack | aa86121 | 2016-03-13 13:53:48 +0100 | [diff] [blame] | 105 | - env: TOXENV=pypy-cryptographyMaster |
Jeremy Lainé | 57c2f03 | 2018-03-21 16:02:10 +0100 | [diff] [blame] | 106 | - env: TOXENV=pypy3-cryptographyMaster |
Alex Gaynor | c3697ad | 2017-11-20 08:19:32 -0500 | [diff] [blame] | 107 | |
Laurens Van Houtven | c915975 | 2015-05-14 13:30:19 -0700 | [diff] [blame] | 108 | |
Jean-Paul Calderone | 2afc3a1 | 2014-03-08 16:01:41 -0500 | [diff] [blame] | 109 | install: |
Paul Kehrer | bb5c3a9 | 2015-04-13 10:55:33 -0400 | [diff] [blame] | 110 | - | |
111 | if [[ "$(uname -s)" == 'Darwin' ]]; then | ||||
112 | brew update | ||||
Alex Gaynor | 5af32d0 | 2016-09-24 01:52:21 -0400 | [diff] [blame] | 113 | if [[ "${OPENSSL}" == "1.1.0" ]]; then |
Alex Gaynor | c3697ad | 2017-11-20 08:19:32 -0500 | [diff] [blame] | 114 | brew upgrade openssl@1.1 |
Alex Gaynor | 5af32d0 | 2016-09-24 01:52:21 -0400 | [diff] [blame] | 115 | else |
116 | brew upgrade openssl | ||||
117 | fi | ||||
Paul Kehrer | bb5c3a9 | 2015-04-13 10:55:33 -0400 | [diff] [blame] | 118 | curl -O https://bootstrap.pypa.io/get-pip.py |
119 | python get-pip.py --user | ||||
Alex Gaynor | c3697ad | 2017-11-20 08:19:32 -0500 | [diff] [blame] | 120 | python -m pip install --user virtualenv |
Paul Kehrer | bb5c3a9 | 2015-04-13 10:55:33 -0400 | [diff] [blame] | 121 | else |
122 | pip install virtualenv | ||||
123 | fi | ||||
124 | python -m virtualenv ~/.venv | ||||
Hynek Schlawack | eb2720e | 2015-07-03 19:24:59 +0200 | [diff] [blame] | 125 | ~/.venv/bin/pip install tox coverage |
Jean-Paul Calderone | 99a6948 | 2014-04-14 10:43:04 -0400 | [diff] [blame] | 126 | |
Jean-Paul Calderone | 4281e52 | 2014-01-10 14:46:59 -0500 | [diff] [blame] | 127 | script: |
Jean-Paul Calderone | a2d7e09 | 2014-04-17 10:07:34 -0400 | [diff] [blame] | 128 | - | |
Alex Gaynor | bf01287 | 2016-06-04 13:18:39 -0700 | [diff] [blame] | 129 | if [[ "$(uname -s)" == 'Darwin' ]]; then |
Paul Kehrer | bb5c3a9 | 2015-04-13 10:55:33 -0400 | [diff] [blame] | 130 | # set our flags to use homebrew openssl |
Alex Gaynor | 5af32d0 | 2016-09-24 01:52:21 -0400 | [diff] [blame] | 131 | if [[ "${OPENSSL}" == "1.1.0" ]]; then |
132 | export LDFLAGS="-L/usr/local/opt/openssl@1.1/lib" | ||||
133 | export CFLAGS="-I/usr/local/opt/openssl@1.1/include" | ||||
134 | export PATH="/usr/local/opt/openssl@1.1/bin:$PATH" | ||||
135 | else | ||||
136 | export LDFLAGS="-L/usr/local/opt/openssl/lib" | ||||
137 | export CFLAGS="-I/usr/local/opt/openssl/include" | ||||
138 | export PATH="/usr/local/opt/openssl/bin:$PATH" | ||||
139 | fi | ||||
Jean-Paul Calderone | a2d7e09 | 2014-04-17 10:07:34 -0400 | [diff] [blame] | 140 | fi |
Paul Kehrer | 5488fe0 | 2015-08-31 13:46:44 -0500 | [diff] [blame] | 141 | openssl version |
142 | ~/.venv/bin/tox -v | ||||
Jean-Paul Calderone | 9f2ec96 | 2014-04-16 18:32:34 -0400 | [diff] [blame] | 143 | |
Paul Kehrer | 9f792f4 | 2015-04-13 18:45:56 -0400 | [diff] [blame] | 144 | after_script: |
Hynek Schlawack | 4234558 | 2015-09-05 10:12:18 +0200 | [diff] [blame] | 145 | - ./.travis/upload_coverage.sh |
Jean-Paul Calderone | 9f2ec96 | 2014-04-16 18:32:34 -0400 | [diff] [blame] | 146 | |
147 | notifications: | ||||
148 | email: false |