go-jsonnet/tests.sh
Alexander Petrov 413234ce49
Replace setup.py test with pytest command (#380)
Replace `setup.py test` with pytest command
2020-02-20 10:37:39 +01:00

33 lines
577 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
export DISABLE_LIB_TESTS=true
export DISABLE_FMT_TESTS=true
export DISABLE_ERROR_TESTS=true
export JSONNET_BIN="$PWD/jsonnet"
git submodule update --recursive cpp-jsonnet
cd cpp-jsonnet
exec ./tests.sh