forked from betagouv/beta.gouv.fr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
26 lines (24 loc) · 953 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
24
25
26
machine:
java: # see <https://github.com/svenkreiss/html5validator#integration-with-circleci>
version: oraclejdk8
environment:
NOKOGIRI_USE_SYSTEM_LIBRARIES: true # Faster installation of nokogiri, required by html-proofer
dependencies:
post:
- pip install --user html5validator
- bundle exec jekyll --version # print it out
test:
pre:
- bundle exec jekyll build --safe
- bundle exec jekyll serve --no-watch --skip-initial-build: # separate build from serve to ensure that the root URL is not set to localhost
background: true
- while ! curl --silent http://localhost:4000; do sleep 1; done # wait for server to start
override:
- ./checks/author_filename
- ./checks/configuration-ok
- ./checks/site-was-built
- ./checks/correct-yaml-data
- ./checks/html-common-mistakes
- ./checks/html5-standard-compliance
- ./checks/social-network-optimizations
- ./checks/json-syntax