2017-11-11 15:41:19 +00:00
|
|
|
version: 2.0
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
docker:
|
2018-05-27 11:11:40 +01:00
|
|
|
- image: circleci/node:8.11.2
|
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
|
2018-06-19 20:12:38 +01:00
|
|
|
- run:
|
|
|
|
name: Checkout submodules
|
|
|
|
command: git submodule sync && git submodule update --init
|
2017-11-11 15:41:19 +00:00
|
|
|
- run:
|
|
|
|
name: Install Hugo
|
2018-06-19 20:11:59 +01:00
|
|
|
command: wget https://github.com/gohugoio/hugo/releases/download/v0.41.2/hugo_0.42.1_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
|
2018-05-27 12:32:04 +01:00
|
|
|
command: ./scripts/release.sh
|
2017-11-11 15:41:19 +00:00
|
|
|
- run:
|
|
|
|
name: Run Tests
|
2018-05-18 20:59:30 +01:00
|
|
|
command: ./scripts/test.sh
|