Merge pull request #3161 from mikebz/mb_remove_travis

removing travis references
This commit is contained in:
Donny Xia
2020-11-03 11:15:58 -08:00
committed by GitHub
13 changed files with 10 additions and 50 deletions

View File

@@ -23,7 +23,7 @@ jobs:
uses: actions/checkout@v2
- name: Lint
run: ./travis/kyaml-pre-commit.sh
run: ./scripts/kyaml-pre-commit.sh
env:
KUSTOMIZE_DOCKER_E2E: false # don't need to do e2e tests for linting

View File

@@ -224,10 +224,10 @@ test-unit-kustomize-all: \
test-unit-kustomize-plugins
test-unit-cmd-all:
./travis/kyaml-pre-commit.sh
./scripts/kyaml-pre-commit.sh
test-go-mod:
./travis/check-go-mod.sh
./scripts/check-go-mod.sh
.PHONY:
test-examples-e2e-kustomize: $(MYGOBIN)/mdrip $(MYGOBIN)/kind

View File

@@ -94,7 +94,7 @@ TO GENERATE CODE
cd $repo/plugin/builtin
go generate ./...
See travis/kyaml-pre-commit.sh for canonical way
See scripts/kyaml-pre-commit.sh for canonical way
to execute the above.
This creates

View File

@@ -514,7 +514,7 @@ Usage: C:\_go\bin\mdrip.exe {fileName}...
</li>
<li>Navigate to the Kustomize <code>travis</code> directory
<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>
</li>
<li>Now Execute:

View File

@@ -514,7 +514,7 @@ Usage: C:\_go\bin\mdrip.exe {fileName}...
</li>
<li>Navigate to the Kustomize <code>travis</code> directory
<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>
</li>
<li>Now Execute:

View File

@@ -5,7 +5,7 @@ English | [简体中文](zh/README.md)
To run these examples, your `$PATH` must contain `kustomize`.
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.
Basic Usage

View File

@@ -4,7 +4,7 @@
这些示例默认 `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

View File

@@ -59,7 +59,7 @@ Usage: C:\_go\bin\mdrip.exe {fileName}...
- In your GoRoot src
- ```Example: C:\_go\src```
- 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:
- ```.\Invoke-PreCommit.ps1```

View File

@@ -59,7 +59,7 @@ Usage: C:\_go\bin\mdrip.exe {fileName}...
- In your GoRoot src
- ```Example: C:\_go\src```
- 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:
- ```.\Invoke-PreCommit.ps1```

View File

@@ -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