-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
74 lines (72 loc) · 2.21 KB
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
defaults: &defaults
working_directory: ~/repo
version: 2
jobs:
build:
<<: *defaults
docker:
- image: circleci/ruby:2.6.0-node
filters:
branches:
only:
- gh-pages-ci
ignore:
- master
environment:
BUNDLER_VERSION: 2.0.1
BUNDLE_PATH: ~/repo/vendor/bundle
GIT_COMMIT_DESC: git log -1 --pretty=%B
JEKYLL_ENV: production
steps:
- checkout
- run:
name: Executing scheduler
command: bash ~/repo/script/get_scheduled_posts.sh
- restore_cache:
keys:
- rubygems-v1-{{ checksum "Gemfile.lock" }}
- rubygems-v1-fallback
- run:
name: Bundle Pre Install
command: gem install bundler:$BUNDLER_VERSION
- run:
name: Bundle Install
command: bundle check || bundle install
- run:
name: Rake tests
command: bundle exec rake
- save_cache:
key: rubygems-v1-{{ checksum "Gemfile.lock" }}
paths:
- vendor/bundle
- run:
name: Jekyll build
command: bundle exec jekyll build --trace
- run:
name: Run Build HTML
command: bash ~/repo/script/build_html "`$GIT_COMMIT_DESC`"
workflows:
version: 2
test-deploy:
jobs:
- build:
context: "Google Analytics Sensitive Data"
filters:
branches:
only:
- gh-pages-ci
ignore:
- master
nightly:
triggers:
- schedule:
cron: "0 0 * * *"
filters:
branches:
only:
- gh-pages-ci
ignore:
- master
jobs:
- build:
context: "Google Analytics Sensitive Data"