1
Fork 0
theorangeone.net-legacy/.circleci/config.yml

32 lines
1.1 KiB
YAML
Raw Normal View History

2017-11-11 15:41:19 +00:00
version: 2.0
jobs:
build:
docker:
2018-08-18 10:58:48 +01:00
- image: circleci/node:10.5.0-stretch-browsers
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
command: wget https://github.com/gohugoio/hugo/releases/download/v0.52/hugo_extended_0.52_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