-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fork v1 bindings and target v2 for this repo
- Loading branch information
Showing
5 changed files
with
24 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
FROM golang:stretch | ||
FROM golang:bullseye | ||
|
||
RUN apt-get update && apt-get upgrade -y | ||
|
||
RUN apt-get install -y libenchant-dev | ||
RUN apt-get install -y enchant-2 libenchant-2-dev | ||
|
||
RUN mkdir /app | ||
WORKDIR /root | ||
|
||
ADD . /app/ | ||
|
||
WORKDIR /app | ||
ADD go.mod /root/ | ||
ADD *.go /root/ | ||
|
||
CMD ["go", "test", "-v", "--cover"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
.PHONY: test | ||
test: | ||
docker build --rm -t goenchant-test . | ||
docker run --rm -ti goenchant-test | ||
docker build --rm -t goenchant2-test . | ||
docker run --rm -it goenchant2-test | ||
|
||
.PHONY: bench | ||
bench: | ||
docker build --rm -t goenchant2-test . | ||
docker run --rm -it goenchant2-test go test --bench=. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module github.com/danielx/enchant | ||
module github.com/danielx/enchant2 | ||
|
||
go 1.15 |