mirror of
https://github.com/argoproj/argo-cd
synced 2026-04-21 17:07:16 +00:00
* chore: Migrate to Go modules * Update CircleCI config * Fix path * Attach vendor for test step correctly * restore_vendor -> attach_vendor * Update cache path * Checkout code before attaching vendor * Move checkout to even earlier in job * Don't restore cache for e2e step * . * Explicitly set GOPATH * Restore Build cache * Fix permissions * Set correct environment for docker env * Uncache everything * Fix permissions * Use workspace for caching Go code * . * go mod tidy * Try to speed up builds * Make mod target implicit dependencies * Do not call make mod-download or mod-vendor * Fix permissions * Don't have modules dependendencies on test-e2e-local * Fix confgi * Bye bye * Remove test parallelism * Get max test parallelism back in, but with lower value
34 lines
835 B
Bash
Executable file
34 lines
835 B
Bash
Executable file
#!/bin/bash
|
|
set -eux -o pipefail
|
|
|
|
export GO111MODULE=off
|
|
|
|
# make sure apiclient does not depend on packr
|
|
which godepgraph || go get github.com/kisielk/godepgraph
|
|
which go-junit-report || go get github.com/jstemmer/go-junit-report
|
|
if godepgraph -s github.com/argoproj/argo-cd/pkg/apiclient | grep packr; then
|
|
echo apiclient package should not depend on packr
|
|
exit 1
|
|
fi
|
|
|
|
TEST_RESULTS=${TEST_RESULTS:-test-results}
|
|
TEST_FLAGS=
|
|
|
|
if test "${ARGOCD_TEST_PARALLELISM:-}" != ""; then
|
|
TEST_FLAGS="$TEST_FLAGS -p $ARGOCD_TEST_PARALLELISM"
|
|
fi
|
|
if test "${ARGOCD_TEST_VERBOSE:-}" != ""; then
|
|
TEST_FLAGS="$TEST_FLAGS -v"
|
|
fi
|
|
|
|
mkdir -p $TEST_RESULTS
|
|
|
|
report() {
|
|
set -eux -o pipefail
|
|
|
|
go-junit-report < $TEST_RESULTS/test.out > $TEST_RESULTS/junit.xml
|
|
}
|
|
|
|
trap 'report' EXIT
|
|
|
|
go test $TEST_FLAGS -failfast $* 2>&1 | tee $TEST_RESULTS/test.out
|