tox: Disable pip cache for coala venv 09/609/3
authorCristina Pauna <cristina.pauna@enea.com>
Fri, 3 May 2019 06:55:22 +0000 (09:55 +0300)
committerCristina Pauna <cristina.pauna@enea.com>
Mon, 6 May 2019 08:44:36 +0000 (11:44 +0300)
JIRA: VAL-10

The Jenkins verify jobs report success even when there are failures,
because it doens't find the coala bears to run.

Ported https://gerrit.akraino.org/r/#/c/607/ to fix the issue

Also fixed the tox issues introduced by 537 as they are casuing the
verify job to fail:
 - conformance/sonobuoy.yaml is whitelisted as per Miguel's request

Change-Id: I497121b8bbd08cf43e7d7b25470f9814ca1d9227
Signed-off-by: Cristina Pauna <cristina.pauna@enea.com>
.coafile
e2e/e2e.sh
tox.ini

index e7f59d0..37ab105 100644 (file)
--- a/.coafile
+++ b/.coafile
@@ -33,6 +33,7 @@ bears = YAMLLintBear
 files = **.yaml, **.yml
 use_spaces = true
 max_line_length = 120
 files = **.yaml, **.yml
 use_spaces = true
 max_line_length = 120
+ignore = conformance/sonobuoy.yaml
 
 [all.Python]
 bears = PyLintBear
 
 [all.Python]
 bears = PyLintBear
index f1b9284..5d7c186 100644 (file)
@@ -18,7 +18,7 @@
 #!/bin/bash
 #
 echo "`date +%H:%M:%S` : Starting Kubetest build"
 #!/bin/bash
 #
 echo "`date +%H:%M:%S` : Starting Kubetest build"
-cd /root/go/src/k8s.io/kubernetes
+cd /root/go/src/k8s.io/kubernetes || exit
 pwd
 kubetest --build
 echo "Build completed"
 pwd
 kubetest --build
 echo "Build completed"
diff --git a/tox.ini b/tox.ini
index 363a381..4b2533c 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -15,6 +15,7 @@ commands =
 [testenv:coala]
 basepython = python3
 passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
 [testenv:coala]
 basepython = python3
 passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
+install_command = python -m pip install --no-cache-dir {opts} {packages}
 deps =
    coala
    coala-bears
 deps =
    coala
    coala-bears