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 0389a4b

Browse files
build: run 2 jobs
1 parent 7b7782d commit 0389a4b

File tree

1 file changed

+29
-2
lines changed

1 file changed

+29
-2
lines changed

‎.circleci/config.yml

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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.json" }}
21+
key: dependency-cache-{{ 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.json" }}
26+
key: dependency-cache-{{ checksum "package-lock.json" }}
2727
paths:
2828
- ./node_modules
2929

@@ -45,13 +45,40 @@ jobs: # a collection of steps
4545
docker:
4646
- image: circleci/ruby:2.5.3-stretch
4747
steps:
48+
- add_ssh_keys:
49+
fingerprints:
50+
- "27:8b:f5:af:bc:66:a9:db:bf:d2:02:4a:cc:d0:58:6d"
4851
- checkout
52+
- run:
53+
name: checkout repo and submodules
54+
command: git submodule update --init --recursive
4955
- run:
5056
name: bundler version
5157
command: bundle -v
5258
- run:
5359
name: ruby version
5460
command: ruby -v
61+
- run:
62+
name: go to directory
63+
command: cd book/config
64+
65+
# Restore bundle cache
66+
- restore_cache:
67+
keys:
68+
- ruby-{{ checksum "Gemfile.lock" }}
69+
- ruby-
70+
- run:
71+
name: Bundle Install
72+
command: bundle check || bundle install
73+
# Store bundle cache
74+
- save_cache:
75+
key: ruby-{{ checksum "Gemfile.lock" }}
76+
paths:
77+
- vendor/bundle
78+
79+
- run:
80+
name: generate PDF
81+
command: make pdf
5582

5683
workflows:
5784
version: 2

0 commit comments

Comments
(0)

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