mirror of
https://github.com/dillonzq/LoveIt.git
synced 2024-11-14 02:46:16 +01:00
chore(ci): add circleci config
This commit is contained in:
parent
f629b6217b
commit
6be6295031
1 changed files with 34 additions and 0 deletions
34
.circleci/config.yml
Normal file
34
.circleci/config.yml
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
version: 2
|
||||||
|
jobs:
|
||||||
|
build-check:
|
||||||
|
parameters:
|
||||||
|
example-site-path:
|
||||||
|
type: string
|
||||||
|
theme-path:
|
||||||
|
type: string
|
||||||
|
docker:
|
||||||
|
- image: cibuilds/hugo:0.64
|
||||||
|
working_directory: ~/LoveIt
|
||||||
|
steps:
|
||||||
|
- checkout
|
||||||
|
- run: git submodule sync
|
||||||
|
- run: git submodule update --init
|
||||||
|
- run: cd << parameters.example-site-path >>
|
||||||
|
- run:
|
||||||
|
name: "Run Hugo"
|
||||||
|
command: HUGO_ENV=production hugo --themesDir << parameters.theme-path >> -v --minify --gc
|
||||||
|
- run:
|
||||||
|
name: "Test Website"
|
||||||
|
command: htmlproofer public --allow-hash-href --empty-alt-ignore --disable-external
|
||||||
|
workflows:
|
||||||
|
version: 2
|
||||||
|
build-check-exampleSite:
|
||||||
|
jobs:
|
||||||
|
- build-check:
|
||||||
|
example-site-path: exampleSite
|
||||||
|
theme-path: ../..
|
||||||
|
build-check-exampleSite-zh:
|
||||||
|
jobs:
|
||||||
|
- build-check:
|
||||||
|
example-site-path: exampleSite/zh
|
||||||
|
theme-path: ../../..
|
Loading…
Reference in a new issue