1
0
mirror of synced 2024-11-25 21:16:01 +03:00

GraphViz Dot inside Travis CI container for diagram generation

This commit is contained in:
Pavel 2019-06-19 14:03:58 +03:00
parent 836764a6bb
commit 66a4fb6579
2 changed files with 12 additions and 1 deletions

3
.gitignore vendored
View File

@ -194,3 +194,6 @@ build/*
# Test report # Test report
test-report.xml test-report.xml
# GraphViz Dot
dot/*

View File

@ -1,6 +1,7 @@
ROOT_DIR=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))) ROOT_DIR=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
SRC_DIR=$(ROOT_DIR)/src SRC_DIR=$(ROOT_DIR)/src
BIN_DIR=$(ROOT_DIR)/bin BIN_DIR=$(ROOT_DIR)/bin
export PATH := $(PATH):$(ROOT_DIR)/dot
deps: deps:
@echo "==> Installing dependencies" @echo "==> Installing dependencies"
@ -28,6 +29,13 @@ ifeq ($(wildcard *.phar), )
@wget https://github.com/phpDocumentor/phpDocumentor2/releases/download/v3.0.0-alpha.3/phpDocumentor.phar -O phpDocumentor.phar @wget https://github.com/phpDocumentor/phpDocumentor2/releases/download/v3.0.0-alpha.3/phpDocumentor.phar -O phpDocumentor.phar
@wget https://github.com/phpDocumentor/phpDocumentor2/releases/download/v3.0.0-alpha.3/phpDocumentor.phar.pubkey -O phpDocumentor.phar.pubkey @wget https://github.com/phpDocumentor/phpDocumentor2/releases/download/v3.0.0-alpha.3/phpDocumentor.phar.pubkey -O phpDocumentor.phar.pubkey
@chmod +x phpDocumentor.phar @chmod +x phpDocumentor.phar
endif
ifeq (, $(shell which dot))
ifeq ($(wildcard dot/dot), )
@mkdir -p $(ROOT_DIR)/dot
@wget https://github.com/Neur0toxine/mwgraphviz/raw/master/dot_static -O $(ROOT_DIR)/dot/dot
@chmod +x $(ROOT_DIR)/dot/dot
endif
endif endif
@php phpDocumentor.phar --config $(ROOT_DIR)/phpdoc.dist.xml @php phpDocumentor.phar --config $(ROOT_DIR)/phpdoc.dist.xml