2017-11-11 15:41:19 +00:00
|
|
|
version: 2.0
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
docker:
|
2018-03-11 11:49:09 +00:00
|
|
|
- image: circleci/node:8.10
|
2017-11-11 21:20:08 +00:00
|
|
|
environment:
|
2017-11-11 21:22:22 +00:00
|
|
|
- npm_config_loglevel: notice
|
2017-11-11 15:41:19 +00:00
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- run:
|
|
|
|
name: Install Hugo
|
2018-05-13 10:24:36 +01:00
|
|
|
command: wget https://github.com/gohugoio/hugo/releases/download/v0.40.3/hugo_0.40.3_Linux-64bit.deb -O /tmp/hugo.deb && sudo dpkg -i /tmp/hugo.deb
|
2018-02-14 21:11:13 +00:00
|
|
|
- restore_cache:
|
2018-03-11 11:49:09 +00:00
|
|
|
key: npm-{{ checksum "package-lock.json" }}
|
2017-11-11 15:44:54 +00:00
|
|
|
- run:
|
|
|
|
name: Install dependencies
|
|
|
|
command: npm install
|
2018-02-14 21:11:13 +00:00
|
|
|
- save_cache:
|
2018-03-11 11:49:09 +00:00
|
|
|
key: npm-{{ checksum "package-lock.json" }}
|
2018-02-14 21:11:13 +00:00
|
|
|
paths:
|
|
|
|
- node_modules
|
2017-11-11 15:41:19 +00:00
|
|
|
- run:
|
|
|
|
name: Build site
|
2017-11-11 16:34:29 +00:00
|
|
|
command: make release
|
2017-11-11 15:41:19 +00:00
|
|
|
- run:
|
|
|
|
name: Run Tests
|
|
|
|
command: make test
|