mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-11 17:12:51 +00:00
Merge pull request #1731 from monopole/noKubevalOnTravis2
No kubeval dependent test on travis.
This commit is contained in:
@@ -122,24 +122,16 @@ function testExamplesAgainstLatestKustomizeRelease {
|
|||||||
echo "Installing latest kustomize from $latest"
|
echo "Installing latest kustomize from $latest"
|
||||||
(cd ~; GO111MODULE=on go install $latest)
|
(cd ~; GO111MODULE=on go install $latest)
|
||||||
|
|
||||||
(cd api;
|
|
||||||
$MDRIP --mode test \
|
$MDRIP --mode test \
|
||||||
--label testAgainstLatestRelease ../examples)
|
--label testAgainstLatestRelease examples
|
||||||
|
|
||||||
if [ -z ${TRAVIS+x} ]; then
|
if [ -z ${TRAVIS+x} ]; then
|
||||||
echo "Not on travis, so running the notravis example tests."
|
echo "Not on travis, so running the notravis example tests."
|
||||||
|
|
||||||
# The following requires helm.
|
# The following requires helm.
|
||||||
# At the moment not asking travis to install it.
|
# At the moment not asking travis to install it.
|
||||||
(cd api;
|
|
||||||
$MDRIP --mode test \
|
$MDRIP --mode test \
|
||||||
--label helmtest README.md ../examples/chart.md)
|
--label helmtest examples/chart.md
|
||||||
|
|
||||||
# The following requires kubeval.
|
|
||||||
# At the moment not asking travis to install it.
|
|
||||||
(cd api;
|
|
||||||
$MDRIP --mode test \
|
|
||||||
--label kubevalTest README.md ../examples/chart.md)
|
|
||||||
fi
|
fi
|
||||||
echo "Example tests passed against $latest"
|
echo "Example tests passed against $latest"
|
||||||
}
|
}
|
||||||
@@ -149,12 +141,12 @@ function testExamplesAgainstLocalHead {
|
|||||||
|
|
||||||
echo "Installing kustomize from HEAD"
|
echo "Installing kustomize from HEAD"
|
||||||
(cd kustomize; go install .)
|
(cd kustomize; go install .)
|
||||||
|
|
||||||
# To test examples of unreleased features, add
|
# To test examples of unreleased features, add
|
||||||
# examples with code blocks annotated with some
|
# examples with code blocks annotated with some
|
||||||
# label _other than_ @testAgainstLatestRelease.
|
# label _other than_ @testAgainstLatestRelease.
|
||||||
(cd api;
|
|
||||||
$MDRIP --mode test \
|
$MDRIP --mode test \
|
||||||
--label testAgainstLatestRelease ../examples)
|
--label testAgainstLatestRelease examples
|
||||||
echo "Example tests passed against HEAD"
|
echo "Example tests passed against HEAD"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user