-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update to drawio-desktop-headless 1.13.0
- Loading branch information
1 parent
3a64714
commit 8dd1667
Showing
8 changed files
with
72 additions
and
72 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
This file was deleted.
Oops, something went wrong.
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,24 +1,31 @@ | ||
.PHONY: build run setup-test test cleanup | ||
.PHONY: build build-no-cache build-multiarch cleanup run test test-ci-setup test-ci | ||
|
||
DOCKER_IMAGE?=rlespinasse/drawio-export:local | ||
build: | ||
@docker build -t ${DOCKER_IMAGE} . | ||
|
||
build-no-cache: | ||
@docker build --no-cache -t ${DOCKER_IMAGE} . | ||
@docker build --no-cache --progress plain -t ${DOCKER_IMAGE} . | ||
|
||
build-multiarch: | ||
@docker buildx build --platform linux/amd64,linux/arm64 -t ${DOCKER_IMAGE} . | ||
|
||
cleanup: | ||
@rm -rf tests/output | ||
@find tests -name "export" | xargs -I {} rm -r "{}" | ||
@find tests -name "test-*" | xargs -I {} rm -r "{}" | ||
|
||
RUN_ARGS?= | ||
DOCKER_OPTIONS?= | ||
run: | ||
@docker run -it -v $(PWD):/data ${DOCKER_IMAGE} ${RUN_ARGS} | ||
@docker run -t $(DOCKER_OPTIONS) -w /data -v $(PWD):/data ${DOCKER_IMAGE} ${RUN_ARGS} | ||
|
||
setup-test: | ||
@npm install -g bats | ||
test: cleanup build test-ci | ||
|
||
test: cleanup build | ||
@mkdir -p tests/output | ||
@DOCKER_IMAGE=$(DOCKER_IMAGE) bats -r tests | ||
test-ci-setup: | ||
@npm install bats | ||
@sudo apt-get install -y libxml2-utils | ||
|
||
cleanup: | ||
@find tests -name "export" | xargs -I {} rm -r "{}" | ||
@find tests -name "test-*" | xargs -I {} rm -r "{}" | ||
@rm -rf tests/output | ||
test-ci: | ||
@mkdir -p tests/output | ||
@DOCKER_IMAGE=$(DOCKER_IMAGE) npx bats -r tests |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
|
||
"${DRAWIO_DESKTOP_EXECUTABLE_PATH:?}" --drawio-desktop-headless "$@" |