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

config.yml « .circleci - github.com/uPagge/uBlogger.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 14b80c1b4d44e17796a4129260ae10531f53f479 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
version: 2.1
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:
  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: ../../..