1
0
Fork 0

integrate caching of plugins

This commit is contained in:
Wilfried Goesgens 2017-03-23 16:31:21 +01:00
parent 3ee0472ed3
commit 2b310fd64d
2 changed files with 32 additions and 10 deletions

View File

@ -292,7 +292,11 @@ build-book:
make ppbook-check-directory-link
make book-check-images-referenced
cd ppbooks/$(NAME) && gitbook install
if test -n $(NODE_MODLUES_DIR); then \
cp -a $(NODE_MODLUES_DIR) ppbooks/$(NAME); \
else \
cd ppbooks/$(NAME); gitbook install -g ; \
fi
cd ppbooks/$(NAME) && gitbook build ./ ./../../books/$(NAME)
rm -f ./books/$(NAME)/HEADER.html
python ../Scripts/deprecated.py

View File

@ -40,26 +40,44 @@ test_tools(){
main(){
#test for basic tools
test_tools
./scripts/build-deb.sh --buildDir build-docu --parallel 2
# we expect this to be a symlink, so no -r ;-)
rm -f build
ln -s build-docu build
./utils/generateExamples.sh
TARGET=$1
shift
if test -z "$TARGET"; then
./scripts/build-deb.sh --buildDir build-docu --parallel 2
# we expect this to be a symlink, so no -r ;-)
rm -f build
ln -s build-docu build
./utils/generateExamples.sh
fi
./utils/generateSwagger.sh
cd Documentation/Books
make build-dist-books OUTPUT_DIR=/build/build-docu
if test -z "$TARGET"; then
make build-dist-books OUTPUT_DIR=/build/build-docu NODE_MODLUES_DIR=/tmp/1/node_modules
else
make build-book NAME=$TARGET OUTPUT_DIR=/build/build-docu NODE_MODLUES_DIR=/tmp/1/node_modules $@
fi
}
if test "$1" != "docker"; then
cd "$(dirname "${BASH_SOURCE[0]}")/.."
pwd
N=`basename $0`
if test "$N" != generateDocumentation.sh; then
DOCTarget=`echo $N | sed "s;.sh;;"`
cd ..
fi
WD=`pwd`
docker run -it --volume ${WD}:/build arangodb/documentation-builder /bin/bash /build/scripts/generateDocumentation.sh docker $@
docker pull arangodb/documentation-builder
docker run -it --volume ${WD}:/build arangodb/documentation-builder /bin/bash /build/scripts/generateDocumentation.sh docker $DOCTarget $@
else
cd /build
shift
main "$@"
fi