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 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145
|
language: python
# The default python version on Travis bionic is 3.6
# But we add this line to show the python version in the Travis UI
python: "3.6"
sudo: false
cache: pip
env:
matrix:
## This matrix entry is required, but it doesn't actually create any jobs
## by itself. All jobs are created by matrix: include: entries
##
## The TOR env var should be kept in sync with the Linux tor version in
## the addons section below
- TOR="master-nightly"
matrix:
# include creates Linux, python 3.6, tor master builds by default
# we use tor master to catch tor issues before stable releases
# the key(s) in each item override these defaults
include:
## Test all supported and available tor versions on Linux
## If the deb.torproject.org repositories are removed, we will fall back to
## Ubuntu security's tor version (currently 0.2.9.14). We might want to
## automatically fail the job if we can't get a newer tor, see #29741.
##
## The current tor versions in Ubuntu are on this page:
## https://packages.ubuntu.com/search?keywords=tor&searchon=names&exact=1
##
- addons:
apt:
sources:
- sourceline: 'deb https://deb.torproject.org/torproject.org tor-nightly-0.3.5.x-bionic main'
key_url: 'https://deb.torproject.org/torproject.org/A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89.asc'
packages:
- tor
env: TOR="0.3.5-nightly"
- addons:
apt:
sources:
- sourceline: 'deb https://deb.torproject.org/torproject.org tor-nightly-0.4.1.x-bionic main'
key_url: 'https://deb.torproject.org/torproject.org/A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89.asc'
packages:
- tor
env: TOR="0.4.1-nightly"
## The current stable release is 0.4.2
- addons:
apt:
sources:
- sourceline: 'deb https://deb.torproject.org/torproject.org bionic main'
key_url: 'https://deb.torproject.org/torproject.org/A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89.asc'
packages:
- tor
env: TOR="stable-release"
- addons:
apt:
sources:
- sourceline: 'deb https://deb.torproject.org/torproject.org tor-nightly-0.4.2.x-bionic main'
key_url: 'https://deb.torproject.org/torproject.org/A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89.asc'
packages:
- tor
env: TOR="0.4.2-nightly"
# We test nightly master by default, in our network tests. So we don't need
# a nightly master test here.
## Test all supported python releases
## Pre-installed in Travis Bionic:
## https://docs.travis-ci.com/user/reference/bionic/#python-support
## End of Life: December 2021
## https://www.python.org/dev/peps/pep-0494/#lifespan
- python: "3.6"
## End of Life: June 2023
## https://www.python.org/dev/peps/pep-0537/#lifespan
- python: "3.7"
## Extra Installs
## End of Life: October 2024
## https://www.python.org/dev/peps/pep-0569/#lifespan
- python: "3.8"
## Python 3.9
## (Add 3.9-dev), so far is the same as nightly
## Stable: 10 October 2020
## (Switch from 3.9-dev to 3.9, and check for {3.10,4.0}-dev)
## End of Life: October 2025
## https://www.python.org/dev/peps/pep-0596/#lifespan
- python: "nightly"
allow_failures:
# stem fails:
# <ERROR> Error initting controller socket: module 'collections' has no
# attribute 'Iterable'
- python: nightly
## (Linux only) Use the Ubuntu Bionic Linux Image
dist: bionic
## Download our dependencies
addons:
## (Linux only)
apt:
sources:
- sourceline: 'deb https://deb.torproject.org/torproject.org tor-nightly-master-bionic main'
key_url: 'https://deb.torproject.org/torproject.org/A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89.asc'
packages:
- tor
# To build the docs
- texlive-latex-extra
- dvipng
install:
- pip install tox-travis
- dpkg-query --show
## Use the default spelling for python, unless it is overridden
- export PYTHON=${PYTHON:-python}
- $PYTHON --version
- tor --version
- tox --version
script:
- tox
# This is not in included in the tox envlist, in order to don't need Internet
# when running tox
# - tox -e doclinks
- tox -e clean
after_success:
# gather Python coverage
- tox -e stats
notifications:
irc:
channels:
- "irc.oftc.net#tor-ci"
template:
- "%{repository_slug} %{branch} %{commit} - %{author}: %{commit_subject}"
- "Build #%{build_number} %{result}. Details: %{build_url}"
|