cleanup, get sanity tests to ignore ci/

This commit is contained in:
Fabian von Feilitzsch
2020-08-20 12:35:05 -04:00
parent c5aede10ee
commit eccc16d86e
4 changed files with 11 additions and 7 deletions

View File

@@ -35,7 +35,7 @@ spec:
- make
- test-integration
restartPolicy: Never
backoffLimit: 3
backoffLimit: 2
completions: 1
parallelism: 1
EOF
@@ -53,14 +53,12 @@ completion_pid=$!
kubectl wait --for=condition=failed job/molecule-integration-test --timeout 5m && exit 1 &
failure_pid=$!
wait -n $completion_pid $failure_pid
exit_code=$?
if (( $exit_code == 0 )); then
if wait -n $completion_pid $failure_pid ; then
echo "Molecule integration tests ran successfully"
exit 0
else
echo "Molecule integration tests failed, see logs for more information..."
kubectl logs job/molecule-integration-test
echo "Molecule integration tests failed, see logs for more information..."
exit 1
fi
exit $exit_code

View File

@@ -1,2 +1,4 @@
plugins/modules/k8s.py validate-modules:parameter-type-not-in-doc
plugins/modules/k8s.py validate-modules:return-syntax-error
ci/incluster_integration.sh shebang!skip
ci/incluster_integration.sh shellcheck!skip

View File

@@ -1,2 +1,4 @@
plugins/modules/k8s.py validate-modules:parameter-type-not-in-doc
plugins/modules/k8s.py validate-modules:return-syntax-error
ci/incluster_integration.sh shebang!skip
ci/incluster_integration.sh shellcheck!skip

View File

@@ -1 +1,3 @@
plugins/modules/k8s.py validate-modules:parameter-type-not-in-doc
ci/incluster_integration.sh shebang!skip
ci/incluster_integration.sh shellcheck!skip