go-jsonnet/tests.sh
Michael Schuett 2188e2d62a Add go mod / cleanup (#266)
Add go mod

Also make the build docs nicer and cleanup the file directory to be in line
with most other go projects. This also make it so you can build jsonnet
without setting -o on go build.
2019-04-03 15:46:19 +02:00

21 lines
349 B
Bash
Executable File

#!/bin/bash
set -e
[ "$1" = "--skip-go-test" ] || go test ./...
c-bindings-tests/run.sh
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