mirror of
https://github.com/google/go-jsonnet.git
synced 2025-08-07 23:07:14 +02:00
33 lines
568 B
Bash
Executable File
33 lines
568 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
PYTHON_COMMAND=${PYTHON_COMMAND:=python}
|
|
|
|
set -x
|
|
|
|
[ "$SKIP_GO_TESTS" == 1 ] || go test ./...
|
|
|
|
if [ "$SKIP_PYTHON_BINDINGS_TESTS" == 1 ]
|
|
then
|
|
c-bindings-tests/build.sh
|
|
else
|
|
c-bindings-tests/run.sh
|
|
|
|
$PYTHON_COMMAND setup.py build --build-platlib .
|
|
$PYTHON_COMMAND -m pytest python
|
|
fi
|
|
|
|
export IMPLEMENTATION=golang
|
|
|
|
go build ./cmd/jsonnet
|
|
go build ./cmd/jsonnetfmt
|
|
|
|
export DISABLE_LIB_TESTS=true
|
|
export DISABLE_ERROR_TESTS=true
|
|
export JSONNETFMT_BIN="$PWD/jsonnetfmt"
|
|
export JSONNET_BIN="$PWD/jsonnet"
|
|
|
|
cd cpp-jsonnet
|
|
exec ./tests.sh
|