forked from fabric/fabric
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
83 lines (83 loc) · 3.01 KB
/
.travis.yml
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
language: python
sudo: required
dist: trusty
cache:
directories:
- $HOME/.cache/pip
python:
- "2.7"
- "3.4"
- "3.5"
- "3.6"
- "pypy"
- "pypy3"
matrix:
# pypy3 (as of 2.4.0) has a wacky arity issue in its source loader. Allow it
# to fail until we can test on, and require, PyPy3.3+. See
# pyinvoke/invoke#358.
allow_failures:
- python: pypy3
# Disabled per https://github.com/travis-ci/travis-ci/issues/1696
# fast_finish: true
install:
# TODO: real test matrix with at least some cells combining different invoke
# and/or paramiko versions, released versions, etc
# Invoke from master for parity
- "pip install -e git+https://github.com/pyinvoke/invoke#egg=invoke"
# And invocations, ditto
- "pip install -e git+https://github.com/pyinvoke/invocations#egg=invocations"
# Paramiko ditto
- "pip install -e git+https://github.com/paramiko/paramiko#egg=paramiko"
# Self
- pip install -e .
# Limit setuptools as some newer versions have Issues(tm). This needs doing
# as its own step; trying to do it via requirements.txt isn't always
# sufficient.
- pip install "setuptools<34"
# Dev requirements
# TODO: follow invoke and split it up a bit so we're not pulling down
# conflicting or unused-by-travis deps?
- pip install -r dev-requirements.txt
# Sanity test of the Invoke layer, if that's busted everything is
- inv --list
# Sanity test of Fabric itself
- fab --version
before_script:
# Create 'sudouser' w/ sudo password & perms on Travis' homedir
- inv travis.make-sudouser
# Allow us to SSH passwordless to localhost
- inv travis.make-sshable
script:
# Fast syntax check failures for more rapid feedback to submitters
# (Travis-oriented metatask that version checks Python, installs, runs.)
- inv travis.blacken
# I have this in my git pre-push hook, but contributors probably don't
- flake8
# Execute full test suite + coverage, as the new sudo-capable user
- inv travis.sudo-coverage
# Execute integration tests too. TODO: merge under coverage...somehow
# NOTE: this also runs as the sudo-capable user, even if it's not necessarily
# doing any sudo'ing itself - the sudo-capable user is also the ssh-able
# user...
- inv travis.sudo-run "inv integration"
# Websites build OK? (Not on PyPy3, Sphinx is all "who the hell are you?" =/
- "if [[ $TRAVIS_PYTHON_VERSION != 'pypy3' ]]; then inv sites www.doctest docs.doctest; fi"
# Did we break setup.py?
- inv travis.test-installation --package=fabric --sanity="fab --version"
# Test distribution builds.
- inv travis.test-packaging --package=fabric --sanity="fab --version"
# Again, but as 'fabric2'
- rm -rf tmp
- pip uninstall -y fabric
- "PACKAGE_AS_FABRIC2=yes inv travis.test-packaging --package=fabric2 --sanity=\"fab2 --version\""
after_success:
# Upload coverage data to codecov
- codecov
notifications:
irc:
channels: "irc.freenode.org#fabric"
template:
- "%{repository_name}@%{branch}: %{message} (%{build_url})"
on_success: change
on_failure: change
email: false