1 # Licensed under the Apache License, Version 2.0 (the "License");
2 # you may not use this file except in compliance with the License.
3 # You may obtain a copy of the License at
5 # http://www.apache.org/licenses/LICENSE-2.0
7 # Unless required by applicable law or agreed to in writing, software
8 # distributed under the License is distributed on an "AS IS" BASIS,
9 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10 # See the License for the specific language governing permissions and
11 # limitations under the License.
13 # We need to set "sudo: true" in order to use a virtual machine instead of a container, because
14 # SSH tests fail in the container. See:
15 # https://docs.travis-ci.com/user/reference/overview/#Virtualization-environments
25 - sourceline: 'ppa:fkrull/deadsnakes'
27 # Ubuntu 14.04 (trusty) does not come with Python 2.6, so we will install it from Felix
33 # We handle Python 2.6 testing from within tox (see tox.ini); note that this means that we run
34 # tox itself always from Python 2.7
38 # The PYTEST_PROCESSES environment var is used in tox.ini to override the --numprocesses argument
39 # for PyTest's xdist plugin. The reason this is necessary is that conventional Travis environments
40 # may report a large amount of available CPUs, but they they are greatly restricted. Through trial
41 # and error we found that more than 1 process may result in failures.
42 - PYTEST_PROCESSES=1 TOX_ENV=pylint_code
43 - PYTEST_PROCESSES=1 TOX_ENV=pylint_tests
44 - PYTEST_PROCESSES=1 TOX_ENV=py27
45 - PYTEST_PROCESSES=1 TOX_ENV=py26
46 - PYTEST_PROCESSES=1 TOX_ENV=py27e2e
47 - PYTEST_PROCESSES=1 TOX_ENV=py26e2e
48 - PYTEST_PROCESSES=1 TOX_ENV=py27ssh
49 - PYTEST_PROCESSES=1 TOX_ENV=py26ssh
50 - PYTEST_PROCESSES=1 TOX_ENV=docs
53 # Create SSH keys for SSH tests
54 - ssh-keygen -f $HOME/.ssh/id_rsa -t rsa -N ''
55 - cat $HOME/.ssh/id_rsa.pub >> $HOME/.ssh/authorized_keys
58 - pip install --upgrade pip
59 - pip install --upgrade setuptools