File tree 5 files changed +22
-7
lines changed
5 files changed +22
-7
lines changed Original file line number Diff line number Diff line change
1
+ [submodule "cpp-jsonnet "]
2
+ path = cpp-jsonnet
3
+ url = https://github.com/google/jsonnet.git
Original file line number Diff line number Diff line change @@ -9,4 +9,5 @@ before_install:
9
9
- go get github.com/mattn/goveralls
10
10
- if ! go get github.com/golang/tools/cmd/cover; then go get golang.org/x/tools/cmd/cover; fi
11
11
script :
12
- - $HOME/gopath/bin/goveralls -service=travis-ci
12
+ - $HOME/gopath/bin/goveralls -service=travis-ci
13
+ - ./tests.sh --skip-go-test
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ This code is known to work on Go 1.8 and above. We recommend always using the ne
18
18
19
19
## Build instructions
20
20
21
- ```
21
+ ``` bash
22
22
export GOPATH=$HOME /go-workspace
23
23
mkdir -pv $GOPATH
24
24
go get github.com/google/go-jsonnet
@@ -32,13 +32,19 @@ go build
32
32
}
33
33
```
34
34
35
+ ## Running tests
36
+
37
+ ``` bash
38
+ ./tests.sh # Also runs `go test ./...`
39
+ ```
40
+
35
41
## Implementation Notes
36
42
37
43
We are generating some helper classes on types by using
38
44
http://clipperhouse.github.io/gen/ . Do the following to regenerate these if
39
45
necessary:
40
46
41
- ```
47
+ ``` bash
42
48
go get github.com/clipperhouse/gen
43
49
go get github.com/clipperhouse/set
44
50
export PATH=$PATH :$GOPATH /bin # If you haven't already
@@ -49,6 +55,6 @@ go generate
49
55
50
56
To regenerate the standard library, do:
51
57
52
- ```
58
+ ``` bash
53
59
./reset_stdast_go.sh && go run cmd/dumpstdlibast.go
54
60
```
Original file line number Diff line number Diff line change 2
2
3
3
set -e
4
4
5
+ [ " $1 " = " --skip-go-test" ] || go test ./...
6
+
5
7
export IMPLEMENTATION=go
6
8
7
9
(cd jsonnet; go build)
8
- source tests_path.source
10
+
9
11
export DISABLE_LIB_TESTS=true
10
12
export DISABLE_FMT_TESTS=true
11
13
export DISABLE_ERROR_TESTS=true
12
14
export JSONNET_BIN=" $PWD /jsonnet/jsonnet"
13
- cd " $TESTS_PATH "
14
- ./tests.sh
15
+
16
+ git submodule update --recursive cpp-jsonnet
17
+ cd cpp-jsonnet
18
+ exec ./tests.sh
You can’t perform that action at this time.
0 commit comments