Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dillonzq/LoveIt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDillon <dillonzq@outlook.com>2020-02-16 17:25:47 +0300
committerDillon <dillonzq@outlook.com>2020-02-16 17:25:47 +0300
commit6be6295031010b3bf25a597a8092987a313985ac (patch)
tree546be90330f8c9cab86d0271840ce6db114772c0 /.circleci
parentf629b6217bebdac23092e04e3202a5872a2718cb (diff)
chore(ci): add circleci config
Diffstat (limited to '.circleci')
-rw-r--r--.circleci/config.yml34
1 files changed, 34 insertions, 0 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
new file mode 100644
index 00000000..cb1eab34
--- /dev/null
+++ b/.circleci/config.yml
@@ -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: ../../..