@@ -18,12 +18,12 @@ jobs: # a collection of steps
1818
1919 - restore_cache : # special step to restore the dependency cache
2020 # Read about caching dependencies: https://circleci.com/docs/2.0/caching/
21- key : dependency-cache -{{ checksum "package-lock.json" }}
21+ key : npm-package -{{ checksum "package-lock.json" }}
2222 - run :
2323 name : npm install
2424 command : npm install
2525 - save_cache : # special step to save the dependency cache
26- key : dependency-cache -{{ checksum "package-lock.json" }}
26+ key : npm-package -{{ checksum "package-lock.json" }}
2727 paths :
2828 - ./node_modules
2929
@@ -62,25 +62,29 @@ jobs: # a collection of steps
6262 # Restore bundle cache
6363 - restore_cache :
6464 keys :
65- - ruby-{{ checksum "book/config/Gemfile.lock" }}
66- - ruby-
65+ - gemfile-{{ checksum "book/config/Gemfile.lock" }}
6766 - run :
68- name : install mathematical for 'asciidoctor-mathematical' gem
67+ name : Bundle Install.pre - install mathematical for 'asciidoctor-mathematical' gem
6968 command : cd book/config && bundle check || sudo apt-get update && sudo apt-get -qq -y install cmake bison flex libffi-dev libxml2-dev libgdk-pixbuf2.0-dev libcairo2-dev libpango1.0-dev ttf-lyx
7069
71- - run :
72- name : install GraphicsMagick for 'prawn-gmagick' gem
73- command : cd book/config && bundle check || sudo apt-get -qq -y install software-properties-common && sudo apt-get -qq -y install graphicsmagick
70+ # - run:
71+ # name: Bundle Install.pre - install GraphicsMagick for 'prawn-gmagick' gem
72+ # command: cd book/config && bundle check || sudo apt-get -qq -y install software-properties-common && sudo apt-get -qq -y install graphicsmagick imagemagick
7473
7574 - run :
7675 name : Bundle Install
7776 command : cd book/config && bundle check || bundle install
77+
7878 # Store bundle cache
7979 - save_cache :
80- key : ruby -{{ checksum "book/config/Gemfile.lock" }}
80+ key : gemfile -{{ checksum "book/config/Gemfile.lock" }}
8181 paths :
8282 - book/config/vendor/bundle
8383
84+ - run :
85+ name : graphviz for dot diagrams
86+ command : sudo apt-get install graphviz
87+
8488 - run :
8589 name : generate PDF
8690 command : cd book/config && make pdf
0 commit comments