mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
* go modified fiddling with vendor got rid of the vendor directory revendored but with the exact same versions of things maybe better added mods for the images revendored using `GOFLAGS` instead of repeating my self vendor everything to the exact same commit hash as before and fixed ugorji Delete Deproxy.toml empty file cleaned up some file cleaned up some cruft get rid of some unused packages and exclude some Microsoft packages added flags to the variables that get pushed into docker in the makefile It works I suppose added noop excluded what we did not want even less hacky reverted to a version that has not been mangled * get rid of my experiment
28 lines
751 B
Bash
Executable File
28 lines
751 B
Bash
Executable File
#!/bin/bash
|
|
# Top level test script to start all other tests
|
|
set -exuo pipefail
|
|
|
|
export CONTEXT="fn_basic_tests"
|
|
source ./helpers.sh
|
|
remove_containers ${CONTEXT}
|
|
|
|
export GOFLAGS=-mod=vendor
|
|
export POSTGRES_URL=$(spawn_postgres ${CONTEXT})
|
|
export MYSQL_URL=$(spawn_mysql ${CONTEXT})
|
|
export MINIO_URL=$(spawn_minio ${CONTEXT})
|
|
export FN_DS_DB_PING_MAX_RETRIES=60
|
|
|
|
go test $(go list ./... | \
|
|
grep -v vendor | \
|
|
grep -v examples | \
|
|
grep -v test/fn-api-tests | \
|
|
grep -v test/fn-system-tests | \
|
|
grep -v images/fn-test-utils\
|
|
)
|
|
|
|
go vet $(go list ./... | grep -v vendor)
|
|
|
|
remove_containers ${CONTEXT}
|
|
|
|
docker run -v `pwd`:/go/src/github.com/fnproject/fn --rm fnproject/swagger:0.0.1 /go/src/github.com/fnproject/fn/docs/swagger_v2.yml
|