Skip to content

Commit 937a003

Browse files
committed
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 042e466)
1 parent 6a2d9ec commit 937a003

File tree

5 files changed

+7
-141
lines changed

5 files changed

+7
-141
lines changed

.ci/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11

22
# `.ci`
33

4-
This directory contains scripts for Travis CI and (more or less) Azure
5-
Pipelines, but they will also happily run on any Debian-like machine.
4+
This directory contains scripts for Continuous Integration platforms. Currently
5+
Azure Pipelines, but they will also happily run on any Debian-like machine.
66

77
The scripts are usually split into `_install` and `_test` steps. The `_install`
88
step will damage your machine, the `_test` step will just run the tests the way

.ci/ci_lib.py

Lines changed: 3 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -60,24 +60,6 @@ def have_docker():
6060
# Force line buffering on stdout.
6161
sys.stdout = os.fdopen(1, 'w', 1)
6262

63-
# Force stdout FD 1 to be a pipe, so tools like pip don't spam progress bars.
64-
if 'TRAVIS_HOME' in os.environ:
65-
proc = subprocess.Popen(
66-
args=['stdbuf', '-oL', 'cat'],
67-
stdin=subprocess.PIPE
68-
)
69-
70-
os.dup2(proc.stdin.fileno(), 1)
71-
os.dup2(proc.stdin.fileno(), 2)
72-
73-
def cleanup_travis_junk(stdout=sys.stdout, stderr=sys.stderr, proc=proc):
74-
stdout.close()
75-
stderr.close()
76-
proc.terminate()
77-
78-
atexit.register(cleanup_travis_junk)
79-
80-
# -----------------
8163

8264
def _argv(s, *args):
8365
"""Interpolate a command line using *args, return an argv style list.
@@ -202,27 +184,9 @@ def destroy(self, rmtree=shutil.rmtree):
202184

203185

204186
class Fold(object):
205-
"""
206-
Bracket a section of stdout with travis_fold markers.
207-
208-
This allows the section to be collapsed or expanded in Travis CI web UI.
209-
210-
>>> with Fold('stage 1'):
211-
... print('Frobnicate the frobnitz')
212-
...
213-
travis_fold:start:stage 1
214-
Frobnicate the frobnitz
215-
travis_fold:end:stage 1
216-
"""
217-
def __init__(self, name):
218-
self.name = name
219-
220-
def __enter__(self):
221-
print('travis_fold:start:%s' % (self.name))
222-
223-
def __exit__(self, _1, _2, _3):
224-
print('')
225-
print('travis_fold:end:%s' % (self.name))
187+
def __init__(self, name): pass
188+
def __enter__(self): pass
189+
def __exit__(self, _1, _2, _3): pass
226190

227191

228192
os.environ.setdefault('ANSIBLE_STRATEGY',

.travis.yml

Lines changed: 0 additions & 95 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
# Mitogen
22

3-
<!-- [![Build Status](https://travis-ci.org/dw/mitogen.png?branch=master)](https://travis-ci.org/dw/mitogen}) -->
43
<a href="https://mitogen.networkgenomics.com/">Please see the documentation</a>.
54

65
![](https://i.imgur.com/eBM6LhJ.gif)
76

87
[![Total alerts](https://img.shields.io/lgtm/alerts/g/mitogen-hq/mitogen.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/mitogen-hq/mitogen/alerts/)
98

10-
[![Build Status](https://api.travis-ci.com/mitogen-hq/mitogen.svg?branch=master)](https://api.travis-ci.com/mitogen-hq/mitogen)
11-
12-
[![Pipelines Status](https://dev.azure.com/mitogen-hq/mitogen/_apis/build/status/mitogen-hq.mitogen?branchName=master)](https://dev.azure.com/mitogen-hq/mitogen/_build/latest?definitionId=1&branchName=master)
9+
[![Build Status](https://dev.azure.com/mitogen-hq/mitogen/_apis/build/status/mitogen-hq.mitogen?branchName=master)](https://dev.azure.com/mitogen-hq/mitogen/_build/latest?definitionId=1&branchName=master)

tests/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ started in September 2017. Pull requests in this area are very welcome!
77

88
## Running The Tests
99

10-
[![Build Status](https://api.travis-ci.org/dw/mitogen.svg?branch=master)](https://travis-ci.org/dw/mitogen)
10+
[![Build Status](https://dev.azure.com/mitogen-hq/mitogen/_apis/build/status/mitogen-hq.mitogen?branchName=master)](https://dev.azure.com/mitogen-hq/mitogen/_build/latest?definitionId=1&branchName=master)
1111

1212
Your computer should have an Internet connection, and the ``docker`` command
1313
line tool should be able to connect to a working Docker daemon (localhost or

0 commit comments

Comments
 (0)