This repository was archived by the owner on Mar 8, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathREADME.md.tpl
52 lines (38 loc) · 1.93 KB
/
README.md.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# {{.Manifest.Name}} driver for [Babelfish](https://github.com/bblfsh/bblfshd)  [](https://travis-ci.org/bblfsh/{{.Manifest.Language | escape_shield }}-driver)  
{{if .Manifest.Documentation}}{{.Manifest.Documentation.Description}}
{{if .Manifest.Documentation.Caveats -}}
Caveats
-------
{{.Manifest.Documentation.Caveats}}
{{end -}}{{end -}}
Development Environment
-----------------------
Requirements:
- `docker`
- Go {{.Manifest.Runtime.GoVersion}}+
To initialize the build system execute: `go test ./driver`, at the root of the project. This will generate the `Dockerfile` for this driver.
To run the tests just execute `go run test.go`, this will start the test over the native and the Go components of the driver using Docker.
The build is done executing `go run build.go`. To evaluate the result using a docker container, execute:
`go run build.go test-driver && docker run -it test-driver`.
If the project is located under `$GOPATH`, run all the above with `GO111MODULE=on` environment variable,
or move the project to any other directory outside of `$GOPATH`.
License
-------
GPLv3, see [LICENSE](LICENSE)
{{define "color-status" -}}
{{if eq .Manifest.Status "planning" -}}
e08dd1
{{- else if eq .Manifest.Status "pre-alpha" -}}
d6ae86
{{- else if eq .Manifest.Status "alpha" -}}
db975c
{{- else if eq .Manifest.Status "beta" -}}
dbd25c
{{- else if eq .Manifest.Status "stable" -}}
9ddb5c
{{- else if eq .Manifest.Status "mature" -}}
60db5c
{{- else -}}
d1d1d1
{{- end}}
{{- end}}