Skip to content

Commit f202ba9

Browse files
authored
Merge pull request #859 from moreati/travis-no-more
Abandon Travis CI
2 parents f5683ae + 9e9161c commit f202ba9

17 files changed

+67
-224
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/ansible_install.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
'-r tests/requirements.txt '
1313
'-r tests/ansible/requirements.txt',
1414
# encoding is required for installing ansible 2.10 with pip2, otherwise we get a UnicodeDecode error
15-
'LC_CTYPE=en_US.UTF-8 LANG=en_US.UTF-8 pip install -q ansible=={0}'.format(ci_lib.ANSIBLE_VERSION)
15+
'LC_CTYPE=en_US.UTF-8 LANG=en_US.UTF-8 pip install "ansible-base<2.10.14" "ansible=={}"'.format(ci_lib.ANSIBLE_VERSION)
1616
],
1717
[
1818
'aws ecr-public get-login-password | docker login --username AWS --password-stdin public.ecr.aws',

.ci/azure-pipelines-steps.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ steps:
1313
1414
displayName: activate venv
1515

16-
- script: .ci/spawn_reverse_shell.py
17-
displayName: "Spawn reverse shell"
18-
1916
- script: .ci/$(MODE)_install.py
2017
displayName: "Run $(MODE)_install.py"
2118
env:

.ci/ci_lib.py

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

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

8668
def _argv(s, *args):
8769
"""Interpolate a command line using *args, return an argv style list.
@@ -206,27 +188,9 @@ def destroy(self, rmtree=shutil.rmtree):
206188

207189

208190
class Fold(object):
209-
"""
210-
Bracket a section of stdout with travis_fold markers.
211-
212-
This allows the section to be collapsed or expanded in Travis CI web UI.
213-
214-
>>> with Fold('stage 1'):
215-
... print('Frobnicate the frobnitz')
216-
...
217-
travis_fold:start:stage 1
218-
Frobnicate the frobnitz
219-
travis_fold:end:stage 1
220-
"""
221-
def __init__(self, name):
222-
self.name = name
223-
224-
def __enter__(self):
225-
print('travis_fold:start:%s' % (self.name))
226-
227-
def __exit__(self, _1, _2, _3):
228-
print('')
229-
print('travis_fold:end:%s' % (self.name))
191+
def __init__(self, name): pass
192+
def __enter__(self): pass
193+
def __exit__(self, _1, _2, _3): pass
230194

231195

232196
os.environ.setdefault('ANSIBLE_STRATEGY',

.ci/debops_common_install.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# Must be installed separately, as PyNACL indirect requirement causes
1111
# newer version to be installed if done in a single pip run.
1212
'pip install "pycparser<2.19"',
13-
'pip install -qqq debops[ansible]==2.1.2 ansible==%s' % ci_lib.ANSIBLE_VERSION,
13+
'pip install -qqq "debops[ansible]==2.1.2" "ansible-base<2.10.14" "ansible=={}"'.format(ci_lib.ANSIBLE_VERSION),
1414
],
1515
[
1616
'aws ecr-public get-login-password | docker login --username AWS --password-stdin public.ecr.aws',

.ci/localhost_ansible_install.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
'pip install '
1313
'-r tests/requirements.txt '
1414
'-r tests/ansible/requirements.txt',
15-
'pip install -q ansible=={}'.format(ci_lib.ANSIBLE_VERSION)
15+
'pip install -q "ansible-base<2.10.14" "ansible=={}"'.format(ci_lib.ANSIBLE_VERSION)
1616
]
1717
]
1818

.ci/spawn_reverse_shell.py

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

.ci/travis.sh

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

.travis.yml

Lines changed: 0 additions & 87 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)

0 commit comments

Comments
 (0)