From f30a4a128e36ada7651541822288a5a79dba3fbc Mon Sep 17 00:00:00 2001 From: Tim Head Date: Thu, 12 Sep 2019 17:50:15 +0200 Subject: [PATCH 1/3] Make sure the exit status gets passed along --- azure-pipelines.yml | 2 +- tests/unit/test_app.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index cced6513..21cd7dbb 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -62,7 +62,7 @@ steps: - script: pip install -e . displayName: 'Install repo2docker' -- script: pushd tests; pytest --durations 10 --cov repo2docker -v $(REPO_TYPE); popd +- script: pushd tests && pytest --durations 10 --cov repo2docker -v $(REPO_TYPE) && popd displayName: 'Run tests $(REPO_TYPE)' - script: | diff --git a/tests/unit/test_app.py b/tests/unit/test_app.py index d45c28a4..3f480ae6 100644 --- a/tests/unit/test_app.py +++ b/tests/unit/test_app.py @@ -11,6 +11,10 @@ from repo2docker.__main__ import make_r2d from repo2docker.utils import chdir +def test_always_fails(): + assert False + + def test_find_image(): images = [{"RepoTags": ["some-org/some-repo:latest"]}] From f91dd0d6dcb43b35c10f12d299e844dcda8e3bca Mon Sep 17 00:00:00 2001 From: Tim Head Date: Wed, 29 Jan 2020 15:53:14 +0100 Subject: [PATCH 2/3] Remove lint step for now --- azure-pipelines.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 21cd7dbb..a1250412 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -3,9 +3,6 @@ pool: vmImage: "ubuntu-16.04" strategy: matrix: - lint: - REPO_TYPE: 'lint' - python_version: '3.6' unit: REPO_TYPE: 'unit' python_version: '3.6' From c37b4870c67e18cffeb8c790ed84737640e02b21 Mon Sep 17 00:00:00 2001 From: Tim Head Date: Wed, 29 Jan 2020 15:54:37 +0100 Subject: [PATCH 3/3] Remove "always fail" test --- tests/unit/test_app.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tests/unit/test_app.py b/tests/unit/test_app.py index 3f480ae6..d45c28a4 100644 --- a/tests/unit/test_app.py +++ b/tests/unit/test_app.py @@ -11,10 +11,6 @@ from repo2docker.__main__ import make_r2d from repo2docker.utils import chdir -def test_always_fails(): - assert False - - def test_find_image(): images = [{"RepoTags": ["some-org/some-repo:latest"]}]