forked from betagouv/beta.gouv.fr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
23 lines (21 loc) · 954 Bytes
/
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
machine:
ruby:
version: 2.1.7
java: # see <https://github.com/svenkreiss/html5validator#integration-with-circleci>
version: oraclejdk8
environment:
GITHUB_PAGES_RUBY_VERSION: $(curl -s https://raw.githubusercontent.com/github/pages-gem/master/.ruby-version | cut -d '-' -f 1)
dependencies:
cache_directories:
- /home/ubuntu/.rvm/gems/
post:
- if [[ ! -e /home/ubuntu/.rvm/gems/ruby-$GITHUB_PAGES_RUBY_VERSION/gems/github-pages-* ]]; then gem install github-pages --no-ri --no-rdoc; fi
- jekyll --version # print it out
- sudo pip install html5validator
test:
override:
- grep version circle.yml | grep $GITHUB_PAGES_RUBY_VERSION # Circle doesn't support interpolation of ruby version, so at least double-check we specified the proper one
- jekyll doctor
- jekyll build
- grep "css/main.css" _site/index.html # smoke test that something was actually compiled
- html5validator --root _site