Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 7c9d66d

Browse files
build: fix deps
1 parent ef7a0f3 commit 7c9d66d

File tree

1 file changed

+18
-16
lines changed

1 file changed

+18
-16
lines changed

‎.circleci/config.yml

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ jobs: # a collection of steps
2020
# Read about caching dependencies: https://circleci.com/docs/2.0/caching/
2121
keys:
2222
# Find a cache corresponding to this specific package-lock.json checksum
23-
- npm-package-{{ checksum "package-lock.json" }}
23+
- npm-v1-{{ checksum "package-lock.json" }}
2424
# Find the most recently generated cache used from any branch
25-
- npm-package-
25+
- npm-v1-
2626
- run:
2727
name: npm install
2828
command: npm install
2929

3030
- save_cache: # special step to save the dependency cache
31-
key: npm-package-{{ checksum "package-lock.json" }}
31+
key: npm-v1-{{ checksum "package-lock.json" }}
3232
paths:
3333
- ./node_modules
3434

@@ -72,34 +72,36 @@ jobs: # a collection of steps
7272
name: NPM version
7373
command: npm -v
7474

75-
# Restore bundle cache
76-
- restore_cache:
77-
keys:
78-
- gemfile-cache-{{ checksum "book/config/Gemfile.lock" }}
79-
- gemfile-cache-
75+
- run: sudo apt-get update
76+
77+
- run:
78+
name: graphviz for dot diagrams
79+
command: sudo apt-get -qq -y install graphviz
8080

8181
- run:
82-
name: Bundle Install.pre - install mathematical for 'asciidoctor-mathematical' gem
83-
command: cd book/config && bundle check --path vendor/bundle || ( 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 )
82+
name: Bundle Install.pre - needed for mathematical -> 'asciidoctor-mathematical' gem
83+
command: sudo apt-get -qq -y install cmake bison flex libffi-dev libxml2-dev libgdk-pixbuf2.0-dev libcairo2-dev libpango1.0-dev ttf-lyx
8484

8585
- run:
8686
name: Bundle Install.pre - install GraphicsMagick for 'prawn-gmagick' gem
87-
command: cd book/config && bundle check --path vendor/bundle || ( sudo apt-get -qq -y install graphicsmagick-imagemagick-compat graphicsmagick-libmagick-dev-compat )
87+
command: sudo apt-get -qq -y install graphicsmagick-imagemagick-compat graphicsmagick-libmagick-dev-compat
88+
89+
# Restore bundle cache
90+
- restore_cache:
91+
keys:
92+
- gemfile-v1-{{ checksum "book/config/Gemfile.lock" }}
93+
- gemfile-v1-
8894

8995
- run:
9096
name: Bundle Install
9197
command: cd book/config && bundle check --path vendor/bundle || ( bundle install --path vendor/bundle )
9298

9399
# Store bundle cache
94100
- save_cache:
95-
key: gemfile-cache-{{ checksum "book/config/Gemfile.lock" }}
101+
key: gemfile-v1-{{ checksum "book/config/Gemfile.lock" }}
96102
paths:
97103
- book/config/vendor/bundle
98104

99-
- run:
100-
name: graphviz for dot diagrams
101-
command: sudo apt-get -qq -y install graphviz
102-
103105
- run:
104106
name: generate PDF
105107
command: cd book/config && make VERSION="$(npx -c 'echo "$npm_package_version"')" pdf

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /