Abandon Travis CI We have no credits, and its a PITA to maintain two CI platforms. The tests running on Travis provide very little extra coverage vs Azure Pipelines alone
(cherry picked from commit 042e46682e
)
This commit is contained in:
parent
6a2d9ec550
commit
937a003a91
|
@ -1,8 +1,8 @@
|
|||
|
||||
# `.ci`
|
||||
|
||||
This directory contains scripts for Travis CI and (more or less) Azure
|
||||
Pipelines, but they will also happily run on any Debian-like machine.
|
||||
This directory contains scripts for Continuous Integration platforms. Currently
|
||||
Azure Pipelines, but they will also happily run on any Debian-like machine.
|
||||
|
||||
The scripts are usually split into `_install` and `_test` steps. The `_install`
|
||||
step will damage your machine, the `_test` step will just run the tests the way
|
||||
|
|
|
@ -60,24 +60,6 @@ def have_docker():
|
|||
# Force line buffering on stdout.
|
||||
sys.stdout = os.fdopen(1, 'w', 1)
|
||||
|
||||
# Force stdout FD 1 to be a pipe, so tools like pip don't spam progress bars.
|
||||
if 'TRAVIS_HOME' in os.environ:
|
||||
proc = subprocess.Popen(
|
||||
args=['stdbuf', '-oL', 'cat'],
|
||||
stdin=subprocess.PIPE
|
||||
)
|
||||
|
||||
os.dup2(proc.stdin.fileno(), 1)
|
||||
os.dup2(proc.stdin.fileno(), 2)
|
||||
|
||||
def cleanup_travis_junk(stdout=sys.stdout, stderr=sys.stderr, proc=proc):
|
||||
stdout.close()
|
||||
stderr.close()
|
||||
proc.terminate()
|
||||
|
||||
atexit.register(cleanup_travis_junk)
|
||||
|
||||
# -----------------
|
||||
|
||||
def _argv(s, *args):
|
||||
"""Interpolate a command line using *args, return an argv style list.
|
||||
|
@ -202,27 +184,9 @@ class TempDir(object):
|
|||
|
||||
|
||||
class Fold(object):
|
||||
"""
|
||||
Bracket a section of stdout with travis_fold markers.
|
||||
|
||||
This allows the section to be collapsed or expanded in Travis CI web UI.
|
||||
|
||||
>>> with Fold('stage 1'):
|
||||
... print('Frobnicate the frobnitz')
|
||||
...
|
||||
travis_fold:start:stage 1
|
||||
Frobnicate the frobnitz
|
||||
travis_fold:end:stage 1
|
||||
"""
|
||||
def __init__(self, name):
|
||||
self.name = name
|
||||
|
||||
def __enter__(self):
|
||||
print('travis_fold:start:%s' % (self.name))
|
||||
|
||||
def __exit__(self, _1, _2, _3):
|
||||
print('')
|
||||
print('travis_fold:end:%s' % (self.name))
|
||||
def __init__(self, name): pass
|
||||
def __enter__(self): pass
|
||||
def __exit__(self, _1, _2, _3): pass
|
||||
|
||||
|
||||
os.environ.setdefault('ANSIBLE_STRATEGY',
|
||||
|
|
95
.travis.yml
95
.travis.yml
|
@ -1,95 +0,0 @@
|
|||
sudo: required
|
||||
dist: trusty
|
||||
|
||||
notifications:
|
||||
email: false
|
||||
irc: "chat.freenode.net#mitogen-builds"
|
||||
|
||||
language: python
|
||||
|
||||
branches:
|
||||
except:
|
||||
- docs-master
|
||||
|
||||
cache:
|
||||
- pip
|
||||
- directories:
|
||||
- /home/travis/virtualenv
|
||||
|
||||
env:
|
||||
- NOCOVERAGE=1
|
||||
|
||||
install:
|
||||
- grep -Erl git-lfs\|couchdb /etc/apt | sudo xargs rm -v
|
||||
- .ci/${MODE}_install.py
|
||||
|
||||
script:
|
||||
- .ci/spawn_reverse_shell.py
|
||||
- .ci/${MODE}_tests.py
|
||||
|
||||
|
||||
# To avoid matrix explosion, just test against oldest->newest and
|
||||
# newest->oldest in various configuartions.
|
||||
|
||||
matrix:
|
||||
allow_failures:
|
||||
# Python 2.4 tests are still unreliable
|
||||
- language: c
|
||||
env: MODE=mitogen_py24 DISTRO=centos5
|
||||
|
||||
include:
|
||||
# Debops tests.
|
||||
# 2.9.6; 3.6 -> 2.7
|
||||
- python: "3.6"
|
||||
env: MODE=debops_common VER=2.9.6
|
||||
# 2.8.3; 3.6 -> 2.7
|
||||
- python: "3.6"
|
||||
env: MODE=debops_common VER=2.8.3
|
||||
# 2.4.6.0; 2.7 -> 2.7
|
||||
- python: "2.7"
|
||||
env: MODE=debops_common VER=2.4.6.0
|
||||
|
||||
# Sanity check against vanilla Ansible. One job suffices.
|
||||
- python: "2.7"
|
||||
env: MODE=ansible VER=2.8.3 DISTROS=debian STRATEGY=linear
|
||||
|
||||
# ansible_mitogen tests.
|
||||
|
||||
# 2.9.6 -> {debian, centos6, centos7}
|
||||
- python: "3.6"
|
||||
env: MODE=ansible VER=2.9.6
|
||||
# 2.8.3 -> {debian, centos6, centos7}
|
||||
- python: "3.6"
|
||||
env: MODE=ansible VER=2.8.3
|
||||
# 2.8.3 -> {debian, centos6, centos7}
|
||||
- python: "2.7"
|
||||
env: MODE=ansible VER=2.8.3
|
||||
|
||||
# 2.4.6.0 -> {debian, centos6, centos7}
|
||||
- python: "3.6"
|
||||
env: MODE=ansible VER=2.4.6.0
|
||||
# 2.4.6.0 -> {debian, centos6, centos7}
|
||||
- python: "2.6"
|
||||
env: MODE=ansible VER=2.4.6.0
|
||||
|
||||
# 2.3 -> {centos5}
|
||||
- python: "2.6"
|
||||
env: MODE=ansible VER=2.3.3.0 DISTROS=centos5
|
||||
|
||||
# Mitogen tests.
|
||||
# 2.4 -> 2.4
|
||||
- language: c
|
||||
env: MODE=mitogen_py24 DISTRO=centos5
|
||||
# 2.7 -> 2.7 -- moved to Azure
|
||||
# 2.7 -> 2.6
|
||||
#- python: "2.7"
|
||||
#env: MODE=mitogen DISTRO=centos6
|
||||
- python: "3.6"
|
||||
env: MODE=mitogen DISTRO=centos7
|
||||
# 2.6 -> 2.7
|
||||
- python: "2.6"
|
||||
env: MODE=mitogen DISTRO=centos7
|
||||
# 2.6 -> 3.5
|
||||
- python: "2.6"
|
||||
env: MODE=mitogen DISTRO=debian-py3
|
||||
# 3.6 -> 2.6 -- moved to Azure
|
|
@ -1,12 +1,9 @@
|
|||
# Mitogen
|
||||
|
||||
<!-- [](https://travis-ci.org/dw/mitogen}) -->
|
||||
<a href="https://mitogen.networkgenomics.com/">Please see the documentation</a>.
|
||||
|
||||

|
||||
|
||||
[](https://lgtm.com/projects/g/mitogen-hq/mitogen/alerts/)
|
||||
|
||||
[](https://api.travis-ci.com/mitogen-hq/mitogen)
|
||||
|
||||
[](https://dev.azure.com/mitogen-hq/mitogen/_build/latest?definitionId=1&branchName=master)
|
||||
[](https://dev.azure.com/mitogen-hq/mitogen/_build/latest?definitionId=1&branchName=master)
|
||||
|
|
|
@ -7,7 +7,7 @@ started in September 2017. Pull requests in this area are very welcome!
|
|||
|
||||
## Running The Tests
|
||||
|
||||
[](https://travis-ci.org/dw/mitogen)
|
||||
[](https://dev.azure.com/mitogen-hq/mitogen/_build/latest?definitionId=1&branchName=master)
|
||||
|
||||
Your computer should have an Internet connection, and the ``docker`` command
|
||||
line tool should be able to connect to a working Docker daemon (localhost or
|
||||
|
|
Loading…
Reference in New Issue