mirror of
https://github.com/project-zot/zot.git
synced 2024-12-16 21:56:37 -05:00
build: set timeout in travis make build process to avoid timeout failure
This commit is contained in:
parent
14214a5794
commit
7439feb1c2
2 changed files with 2 additions and 38 deletions
|
@ -22,7 +22,7 @@ install:
|
|||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then wget -N https://github.com/bazelbuild/bazel/releases/download/3.0.0/bazel-3.0.0-installer-linux-x86_64.sh && chmod +x bazel-3.0.0-installer-linux-x86_64.sh && ./bazel-3.0.0-installer-linux-x86_64.sh --user; go get -u github.com/swaggo/swag/cmd/swag; go mod download; sudo apt-get update; sudo apt-get install rpm; sudo apt install snapd; sudo snap install skopeo --edge --devmode; fi
|
||||
|
||||
script:
|
||||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then make && travis_wait make -f Makefile.bazel build; fi
|
||||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then travis_wait make && travis_wait make -f Makefile.bazel build; fi
|
||||
|
||||
after_success:
|
||||
- bash <(curl -s https://codecov.io/bash)
|
||||
|
|
|
@ -1617,42 +1617,6 @@ func TestParallelRequests(t *testing.T) {
|
|||
destImageName: "zot-4-test",
|
||||
testCaseName: "Request-14",
|
||||
},
|
||||
{
|
||||
srcImageName: "zot-cve-test",
|
||||
srcImageTag: "0.0.1",
|
||||
destImageName: "zot-5-test",
|
||||
testCaseName: "Request-15",
|
||||
},
|
||||
{
|
||||
srcImageName: "zot-cve-test",
|
||||
srcImageTag: "0.0.1",
|
||||
destImageName: "zot-1-test",
|
||||
testCaseName: "Request-16",
|
||||
},
|
||||
{
|
||||
srcImageName: "zot-cve-test",
|
||||
srcImageTag: "0.0.1",
|
||||
destImageName: "zot-2-test",
|
||||
testCaseName: "Request-17",
|
||||
},
|
||||
{
|
||||
srcImageName: "zot-cve-test",
|
||||
srcImageTag: "0.0.1",
|
||||
destImageName: "zot-3-test",
|
||||
testCaseName: "Request-18",
|
||||
},
|
||||
{
|
||||
srcImageName: "zot-cve-test",
|
||||
srcImageTag: "0.0.1",
|
||||
destImageName: "zot-4-test",
|
||||
testCaseName: "Request-19",
|
||||
},
|
||||
{
|
||||
srcImageName: "zot-cve-test",
|
||||
srcImageTag: "0.0.1",
|
||||
destImageName: "zot-5-test",
|
||||
testCaseName: "Request-20",
|
||||
},
|
||||
}
|
||||
|
||||
config := api.NewConfig()
|
||||
|
@ -1792,7 +1756,7 @@ func TestParallelRequests(t *testing.T) {
|
|||
|
||||
reader := bufio.NewReader(file)
|
||||
|
||||
b := make([]byte, 1024*1024)
|
||||
b := make([]byte, 5*1024*1024)
|
||||
|
||||
if j%4 == 0 {
|
||||
readContent := 0
|
||||
|
|
Loading…
Reference in a new issue