Rename build script to avoid conflict with bazel
It's difficult to include this repository using bazel, because the file named "build" conflicts with new_go_repository generation on case-insensitive filesystems (ref https://github.com/bazelbuild/rules_go/issues/234). This change renames the file to something that doesn't conflict, and also renames the test script for consistency.
This commit is contained in:
parent
4f36e5994e
commit
1b9caefba5
@ -38,9 +38,9 @@ install:
|
|||||||
script:
|
script:
|
||||||
- >
|
- >
|
||||||
if [ "${TARGET}" == "amd64" ]; then
|
if [ "${TARGET}" == "amd64" ]; then
|
||||||
GOARCH="${TARGET}" ./test;
|
GOARCH="${TARGET}" ./test.sh;
|
||||||
else
|
else
|
||||||
GOARCH="${TARGET}" ./build;
|
GOARCH="${TARGET}" ./build.sh;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
|
@ -40,7 +40,7 @@ This is a rough outline of how to prepare a contribution:
|
|||||||
- If you changed code:
|
- If you changed code:
|
||||||
- add automated tests to cover your changes, using the [Ginkgo](http://onsi.github.io/ginkgo/) & [Gomega](http://onsi.github.io/gomega/) style
|
- add automated tests to cover your changes, using the [Ginkgo](http://onsi.github.io/ginkgo/) & [Gomega](http://onsi.github.io/gomega/) style
|
||||||
- if the package did not previously have any test coverage, add it to the list
|
- if the package did not previously have any test coverage, add it to the list
|
||||||
of `TESTABLE` packages in the `test` script.
|
of `TESTABLE` packages in the `test.sh` script.
|
||||||
- run the full test script and ensure it passes
|
- run the full test script and ensure it passes
|
||||||
- Make sure any new code files have a license header (this is now enforced by automated tests)
|
- Make sure any new code files have a license header (this is now enforced by automated tests)
|
||||||
- Submit a pull request to the original repository.
|
- Submit a pull request to the original repository.
|
||||||
@ -59,7 +59,7 @@ sudo su
|
|||||||
cd /go/src/github.com/containernetworking/cni
|
cd /go/src/github.com/containernetworking/cni
|
||||||
|
|
||||||
# to run the full test suite
|
# to run the full test suite
|
||||||
./test
|
./test.sh
|
||||||
|
|
||||||
# to focus on a particular test suite
|
# to focus on a particular test suite
|
||||||
cd plugins/main/loopback
|
cd plugins/main/loopback
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
#
|
#
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
source ./build
|
source ./build.sh
|
||||||
|
|
||||||
TESTABLE="libcni plugins/ipam/dhcp plugins/ipam/host-local plugins/ipam/host-local/backend/allocator plugins/main/loopback pkg/invoke pkg/ns pkg/skel pkg/types pkg/types/current pkg/types/020 pkg/utils plugins/main/ipvlan plugins/main/macvlan plugins/main/bridge plugins/main/ptp plugins/test/noop pkg/utils/hwaddr pkg/ip pkg/version pkg/version/testhelpers plugins/meta/flannel pkg/ipam"
|
TESTABLE="libcni plugins/ipam/dhcp plugins/ipam/host-local plugins/ipam/host-local/backend/allocator plugins/main/loopback pkg/invoke pkg/ns pkg/skel pkg/types pkg/types/current pkg/types/020 pkg/utils plugins/main/ipvlan plugins/main/macvlan plugins/main/bridge plugins/main/ptp plugins/test/noop pkg/utils/hwaddr pkg/ip pkg/version pkg/version/testhelpers plugins/meta/flannel pkg/ipam"
|
||||||
FORMATTABLE="$TESTABLE pkg/testutils plugins/meta/flannel plugins/meta/tuning"
|
FORMATTABLE="$TESTABLE pkg/testutils plugins/meta/flannel plugins/meta/tuning"
|
Loading…
x
Reference in New Issue
Block a user