Update project maturity status
[multicloud/azure.git] / azure / aria / aria-extension-cloudify / src / aria / .travis.yml
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
4 #
5 # http://www.apache.org/licenses/LICENSE-2.0
6 #
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.
12
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
16
17 dist: trusty
18 sudo: true
19
20 language: python
21
22 addons:
23   apt:
24     sources:
25       - sourceline: 'ppa:fkrull/deadsnakes'
26     packages:
27       # Ubuntu 14.04 (trusty) does not come with Python 2.6, so we will install it from Felix
28       # Krull's PPA
29       - python2.6
30       - python2.6-dev
31
32 python:
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
35   - '2.7'
36
37 env:
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
51
52 before_install:
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
56
57   # Python dependencies
58   - pip install --upgrade pip
59   - pip install --upgrade setuptools
60   - pip install tox
61   - tox --version
62
63 script:
64   - tox -e $TOX_ENV