mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-13 18:10:59 +00:00
Merge pull request #3161 from mikebz/mb_remove_travis
removing travis references
This commit is contained in:
2
.github/workflows/go.yml
vendored
2
.github/workflows/go.yml
vendored
@@ -23,7 +23,7 @@ jobs:
|
|||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Lint
|
- name: Lint
|
||||||
run: ./travis/kyaml-pre-commit.sh
|
run: ./scripts/kyaml-pre-commit.sh
|
||||||
env:
|
env:
|
||||||
KUSTOMIZE_DOCKER_E2E: false # don't need to do e2e tests for linting
|
KUSTOMIZE_DOCKER_E2E: false # don't need to do e2e tests for linting
|
||||||
|
|
||||||
|
|||||||
4
Makefile
4
Makefile
@@ -224,10 +224,10 @@ test-unit-kustomize-all: \
|
|||||||
test-unit-kustomize-plugins
|
test-unit-kustomize-plugins
|
||||||
|
|
||||||
test-unit-cmd-all:
|
test-unit-cmd-all:
|
||||||
./travis/kyaml-pre-commit.sh
|
./scripts/kyaml-pre-commit.sh
|
||||||
|
|
||||||
test-go-mod:
|
test-go-mod:
|
||||||
./travis/check-go-mod.sh
|
./scripts/check-go-mod.sh
|
||||||
|
|
||||||
.PHONY:
|
.PHONY:
|
||||||
test-examples-e2e-kustomize: $(MYGOBIN)/mdrip $(MYGOBIN)/kind
|
test-examples-e2e-kustomize: $(MYGOBIN)/mdrip $(MYGOBIN)/kind
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ TO GENERATE CODE
|
|||||||
cd $repo/plugin/builtin
|
cd $repo/plugin/builtin
|
||||||
go generate ./...
|
go generate ./...
|
||||||
|
|
||||||
See travis/kyaml-pre-commit.sh for canonical way
|
See scripts/kyaml-pre-commit.sh for canonical way
|
||||||
to execute the above.
|
to execute the above.
|
||||||
|
|
||||||
This creates
|
This creates
|
||||||
|
|||||||
@@ -514,7 +514,7 @@ Usage: C:\_go\bin\mdrip.exe {fileName}...
|
|||||||
</li>
|
</li>
|
||||||
<li>Navigate to the Kustomize <code>travis</code> directory
|
<li>Navigate to the Kustomize <code>travis</code> directory
|
||||||
<ul>
|
<ul>
|
||||||
<li><code>Example: C:\_go\src\sigs.k8s.io\kustomize\travis</code></li>
|
<li><code>Example: C:\_go\src\sigs.k8s.io\kustomize\scripts</code></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li>Now Execute:
|
<li>Now Execute:
|
||||||
|
|||||||
@@ -514,7 +514,7 @@ Usage: C:\_go\bin\mdrip.exe {fileName}...
|
|||||||
</li>
|
</li>
|
||||||
<li>Navigate to the Kustomize <code>travis</code> directory
|
<li>Navigate to the Kustomize <code>travis</code> directory
|
||||||
<ul>
|
<ul>
|
||||||
<li><code>Example: C:\_go\src\sigs.k8s.io\kustomize\travis</code></li>
|
<li><code>Example: C:\_go\src\sigs.k8s.io\kustomize\scripts</code></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li>Now Execute:
|
<li>Now Execute:
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ English | [简体中文](zh/README.md)
|
|||||||
To run these examples, your `$PATH` must contain `kustomize`.
|
To run these examples, your `$PATH` must contain `kustomize`.
|
||||||
See the [installation instructions](../docs/INSTALL.md).
|
See the [installation instructions](../docs/INSTALL.md).
|
||||||
|
|
||||||
These examples are [tested](../travis/kyaml-pre-commit.sh)
|
These examples are [tested](../scripts/kyaml-pre-commit.sh)
|
||||||
to work with the latest _released_ version of kustomize.
|
to work with the latest _released_ version of kustomize.
|
||||||
|
|
||||||
Basic Usage
|
Basic Usage
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
这些示例默认 `kustomize` 在您的 `$PATH` 中。
|
这些示例默认 `kustomize` 在您的 `$PATH` 中。
|
||||||
|
|
||||||
这些示例通过了 [pre-commit](../../travis/kyaml-pre-commit.sh) 测试,并且应该与 HEAD 一起使用。
|
这些示例通过了 [pre-commit](../../scripts/kyaml-pre-commit.sh) 测试,并且应该与 HEAD 一起使用。
|
||||||
|
|
||||||
```
|
```
|
||||||
go get sigs.k8s.io/kustomize/v3/cmd/kustomize
|
go get sigs.k8s.io/kustomize/v3/cmd/kustomize
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ Usage: C:\_go\bin\mdrip.exe {fileName}...
|
|||||||
- In your GoRoot src
|
- In your GoRoot src
|
||||||
- ```Example: C:\_go\src```
|
- ```Example: C:\_go\src```
|
||||||
- Navigate to the Kustomize `travis` directory
|
- Navigate to the Kustomize `travis` directory
|
||||||
- ```Example: C:\_go\src\sigs.k8s.io\kustomize\travis```
|
- ```Example: C:\_go\src\sigs.k8s.io\kustomize\scripts```
|
||||||
- Now Execute:
|
- Now Execute:
|
||||||
- ```.\Invoke-PreCommit.ps1```
|
- ```.\Invoke-PreCommit.ps1```
|
||||||
|
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ Usage: C:\_go\bin\mdrip.exe {fileName}...
|
|||||||
- In your GoRoot src
|
- In your GoRoot src
|
||||||
- ```Example: C:\_go\src```
|
- ```Example: C:\_go\src```
|
||||||
- Navigate to the Kustomize `travis` directory
|
- Navigate to the Kustomize `travis` directory
|
||||||
- ```Example: C:\_go\src\sigs.k8s.io\kustomize\travis```
|
- ```Example: C:\_go\src\sigs.k8s.io\kustomize\scripts```
|
||||||
- Now Execute:
|
- Now Execute:
|
||||||
- ```.\Invoke-PreCommit.ps1```
|
- ```.\Invoke-PreCommit.ps1```
|
||||||
|
|
||||||
|
|||||||
@@ -1,40 +0,0 @@
|
|||||||
# Copyright 2019 The Kubernetes Authors.
|
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
# Exits with status 0 if it can be determined that the
|
|
||||||
# current PR should not trigger all travis checks.
|
|
||||||
#
|
|
||||||
# This could be done with a "git ...|grep -vqE" oneliner
|
|
||||||
# but as travis triggering is refined it's useful to check
|
|
||||||
# travis logs to see how branch files were considered.
|
|
||||||
function consider-early-travis-exit {
|
|
||||||
if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
|
|
||||||
echo "Unknown pull request."
|
|
||||||
return
|
|
||||||
fi
|
|
||||||
# Might use this to improve checks on multi-commit PRs.
|
|
||||||
echo "TRAVIS_COMMIT_RANGE=$TRAVIS_COMMIT_RANGE"
|
|
||||||
echo "Branch Files ('T'==trigger tests, ' '=ignore):"
|
|
||||||
echo "---"
|
|
||||||
local triggers=0
|
|
||||||
local invisibles=0
|
|
||||||
for fn in $(git diff --name-only HEAD origin/master); do
|
|
||||||
if [[ "$fn" =~ (\.md$)|(^docs/) ]]; then
|
|
||||||
echo " $fn"
|
|
||||||
let invisibles+=1
|
|
||||||
else
|
|
||||||
echo " T $fn"
|
|
||||||
let triggers+=1
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
echo "---"
|
|
||||||
printf >&2 "%6d files invisible to travis.\n" $invisibles
|
|
||||||
printf >&2 "%6d files trigger travis.\n" $triggers
|
|
||||||
if [ $triggers -eq 0 ]; then
|
|
||||||
echo "No files triggered travis test, exiting early."
|
|
||||||
# see https://github.com/travis-ci/travis-build/blob/master/lib/travis/build/templates/header.sh
|
|
||||||
travis_terminate 0
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
consider-early-travis-exit
|
|
||||||
unset -f consider-early-travis-exit
|
|
||||||
Reference in New Issue
Block a user