Travis builds are failing
morganbye opened this issue · comments
Travis testing of PRs and new commits currently fail.
Assigned to @creisle as she's the only one that can change view the reasons for failure.
We should also look to update, the README to reflect the Travis test location (for the badge icon)
Sure, Its probably failing b/c I haven't configured it yet beyond just adding the repo. I'll look into it
Found the log, looks like it's tox that's breaking
Setting APT mirror in /etc/apt/sources.list: http://us-east-1.ec2.archive.ubuntu.com/ubuntu/
git.checkout
0.65s$ git clone --depth=50 https://github.com/creisle/rna_sv_simulator.git creisle/rna_sv_simulator
Cloning into 'creisle/rna_sv_simulator'...
remote: Enumerating objects: 53, done.
remote: Counting objects: 100% (53/53), done.
remote: Compressing objects: 100% (39/39), done.
remote: Total 53 (delta 8), reused 52 (delta 8), pack-reused 0
Unpacking objects: 100% (53/53), done.
$ cd creisle/rna_sv_simulator
0.45s$ git fetch origin +refs/pull/5/merge:
remote: Enumerating objects: 6, done.
remote: Counting objects: 100% (6/6), done.
remote: Compressing objects: 100% (2/2), done.
remote: Total 4 (delta 2), reused 3 (delta 2), pack-reused 0
Unpacking objects: 100% (4/4), done.
From https://github.com/creisle/rna_sv_simulator
* branch refs/pull/5/merge -> FETCH_HEAD
$ git checkout -qf FETCH_HEAD
0.01s$ source ~/virtualenv/python3.6/bin/activate
$ python --version
Python 3.6.3
$ pip --version
pip 9.0.1 from /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (python 3.6)
install
5.31s$ pip install -U tox-travis
Collecting tox-travis
Downloading https://files.pythonhosted.org/packages/cf/d3/84837c27519263989a89e12c50db72aba85ec4439df2e579bc64cb4435e9/tox_travis-0.11-py2.py3-none-any.whl
Collecting tox>=2.0 (from tox-travis)
Downloading https://files.pythonhosted.org/packages/8f/c3/64bade66e6188a0dc02689392d5c782a9eb6648b54ddc2db034aa495b6a2/tox-3.5.2-py2.py3-none-any.whl (52kB)
100% |████████████████████████████████| 61kB 1.6MB/s
Collecting setuptools>=30.0.0 (from tox>=2.0->tox-travis)
Downloading https://files.pythonhosted.org/packages/96/06/c8ee69628191285ddddffb277bd5abdf769166e7a14b867c2a172f0175b1/setuptools-40.4.3-py2.py3-none-any.whl (569kB)
100% |████████████████████████████████| 573kB 1.8MB/s
Collecting pluggy<1,>=0.3.0 (from tox>=2.0->tox-travis)
Downloading https://files.pythonhosted.org/packages/f5/f1/5a93c118663896d83f7bcbfb7f657ce1d0c0d617e6b4a443a53abcc658ca/pluggy-0.7.1-py2.py3-none-any.whl
Collecting toml>=0.9.4 (from tox>=2.0->tox-travis)
Downloading https://files.pythonhosted.org/packages/a2/12/ced7105d2de62fa7c8fb5fce92cc4ce66b57c95fb875e9318dba7f8c5db0/toml-0.10.0-py2.py3-none-any.whl
Collecting filelock<4,>=3.0.0 (from tox>=2.0->tox-travis)
Downloading https://files.pythonhosted.org/packages/b4/fe/5ca16d167849b980925d3bd706cda266c7435dcf21675c546374da207654/filelock-3.0.9-py3-none-any.whl
Collecting py<2,>=1.4.17 (from tox>=2.0->tox-travis)
Downloading https://files.pythonhosted.org/packages/3e/c7/3da685ef117d42ac8d71af525208759742dd235f8094221fdaafcd3dba8f/py-1.7.0-py2.py3-none-any.whl (83kB)
100% |████████████████████████████████| 92kB 5.6MB/s
Requirement already up-to-date: six<2,>=1.0.0 in /home/travis/virtualenv/python3.6.3/lib/python3.6/site-packages (from tox>=2.0->tox-travis)
Collecting virtualenv>=1.11.2 (from tox>=2.0->tox-travis)
Downloading https://files.pythonhosted.org/packages/b6/30/96a02b2287098b23b875bc8c2f58071c35d2efe84f747b64d523721dc2b5/virtualenv-16.0.0-py2.py3-none-any.whl (1.9MB)
100% |████████████████████████████████| 1.9MB 682kB/s
Installing collected packages: setuptools, pluggy, toml, filelock, py, virtualenv, tox, tox-travis
Found existing installation: setuptools 38.2.4
Uninstalling setuptools-38.2.4:
Successfully uninstalled setuptools-38.2.4
Found existing installation: pluggy 0.6.0
Uninstalling pluggy-0.6.0:
Successfully uninstalled pluggy-0.6.0
Found existing installation: py 1.5.2
Uninstalling py-1.5.2:
Successfully uninstalled py-1.5.2
Successfully installed filelock-3.0.9 pluggy-0.7.1 py-1.7.0 setuptools-40.4.3 toml-0.10.0 tox-3.5.2 tox-travis-0.11 virtualenv-16.0.0
5.43s$ tox
GLOB sdist-make: /home/travis/build/creisle/rna_sv_simulator/setup.py
py36 create: /home/travis/build/creisle/rna_sv_simulator/.tox/py36
py36 installdeps: -r/home/travis/build/creisle/rna_sv_simulator/requirements_dev.txt
ERROR: invocation failed (exit code 1), logfile: /home/travis/build/creisle/rna_sv_simulator/.tox/py36/log/py36-1.log
ERROR: actionid: py36
msg: getenv
cmdargs: '/home/travis/build/creisle/rna_sv_simulator/.tox/py36/bin/python -m pip install -r/home/travis/build/creisle/rna_sv_simulator/requirements_dev.txt'
Could not open requirements file: [Errno 2] No such file or directory: '/home/travis/build/creisle/rna_sv_simulator/requirements_dev.txt'
ERROR: could not install deps [-r/home/travis/build/creisle/rna_sv_simulator/requirements_dev.txt]; v = InvocationError('/home/travis/build/creisle/rna_sv_simulator/.tox/py36/bin/python -m pip install -r/home/travis/build/creisle/rna_sv_simulator/requirements_dev.txt (see /home/travis/build/creisle/rna_sv_simulator/.tox/py36/log/py36-1.log)', 1)
___________________________________ summary ____________________________________
ERROR: py36: could not install deps [-r/home/travis/build/creisle/rna_sv_simulator/requirements_dev.txt]; v = InvocationError('/home/travis/build/creisle/rna_sv_simulator/.tox/py36/bin/python -m pip install -r/home/travis/build/creisle/rna_sv_simulator/requirements_dev.txt (see /home/travis/build/creisle/rna_sv_simulator/.tox/py36/log/py36-1.log)', 1)
The command "tox" exited with 1.
Done. Your build exited with 1.
It is b/c I removed the requirements_dev and put it in the setup.py. I think I can fix it by just adding to the commands. Will give it a shot
It says that the build failed, but if you actually look at the log then it's failing cos the assert
is bad from click
.
But the build is successful, and testing is running. It's just the test is bad.
This should get converted to a PR
Successfully installed Jinja2-2.10 MarkupSafe-1.0 PyYAML-3.13 Pygments-2.2.0 Sphinx-1.7.1 alabaster-0.7.12 argh-0.26.2 attrs-18.2.0 babel-2.6.0 bumpversion-0.5.3 certifi-2018.8.24 chardet-3.0.4 coverage-4.5.1 docutils-0.14 flake8-3.5.0 idna-2.7 imagesize-1.1.0 mccabe-0.6.1 packaging-18.0 pathtools-0.1.2 pip-9.0.1 pkginfo-1.4.2 pluggy-0.7.1 py-1.7.0 pycodestyle-2.3.1 pyflakes-1.6.0 pyparsing-2.2.2 pytest-3.4.2 pytest-runner-2.11.1 pytz-2018.5 requests-2.19.1 requests-toolbelt-0.8.0 rna-sv-simulator-0.1.0 six-1.11.0 snowballstemmer-1.2.1 sphinxcontrib-websupport-1.1.0 tox-2.9.1 tqdm-4.26.0 twine-1.10.0 urllib3-1.23 virtualenv-16.0.0 watchdog-0.8.3 wheel-0.30.0
py36 runtests: commands[2] | py.test --basetemp=/home/travis/build/creisle/rna_sv_simulator/.tox/py36/tmp
============================= test session starts ==============================
platform linux -- Python 3.6.3, pytest-3.4.2, py-1.7.0, pluggy-0.7.1
rootdir: /home/travis/build/creisle/rna_sv_simulator, inifile: setup.cfg
collected 2 items
tests/test_rna_sv_simulator.py .F [100%]
=================================== FAILURES ===================================
_________________________ test_command_line_interface __________________________
def test_command_line_interface():
"""Test the CLI."""
runner = CliRunner()
result = runner.invoke(cli.main)
> assert result.exit_code == 0
E assert 1 == 0
E + where 1 = <Result SystemExit(1,)>.exit_code
tests/test_rna_sv_simulator.py:34: AssertionError
====================== 1 failed, 1 passed in 0.05 seconds ======================
ERROR: InvocationError for command '/home/travis/build/creisle/rna_sv_simulator/.tox/py36/bin/py.test --basetemp=/home/travis/build/creisle/rna_sv_simulator/.tox/py36/tmp' (exited with code 1)
___________________________________ summary ____________________________________
ERROR: py36: commands failed
The command "tox" exited with 1.
Done. Your build exited with 1.
Closing issue.
Resolved with #6