diff --git a/.circleci/config.example.yml b/.circleci/config.example.yml deleted file mode 100644 index 967ccf64b..000000000 --- a/.circleci/config.example.yml +++ /dev/null @@ -1,59 +0,0 @@ -# https://discuss.circleci.com/t/circleci-2-1-config-overview/26057 -version: 2.1 - -references: - defaults: &defaults - working_directory: ~/repo - environment: - TZ: "/usr/share/zoneinfo/Asia/Hong_Kong" - TERM: xterm - -jobs: - build: - <<: *defaults - docker: - - image: circleci/ruby:2.6.3-node-browsers - steps: - - checkout - - restore_cache: - keys: - - v1-dependencies-{{ checksum "Gemfile.lock" }} - - v1-dependencies- - - run: - name: update bundler - command: | - echo 'export BUNDLER_VERSION=$(cat Gemfile.lock | tail -1 | tr -d " ")' >> "$BASH_ENV" - source $BASH_ENV - gem install bundler - - run: - name: install ruby dependencies - command: bundle install --jobs=4 --retry=3 --path vendor/bundle - - save_cache: - paths: - - ./vendor/bundle - key: v1-dependencies-{{ checksum "Gemfile.lock" }} - - restore_cache: - keys: - - v1-dependencies-{{ checksum "yarn.lock" }} - - v1-dependencies- - - run: - name: install node dependencies - command: sudo npm install -g grunt-cli && yarn install --frozen-lockfile - - save_cache: - paths: - - ./node_modules - key: v1-dependencies-{{ checksum "yarn.lock" }} - - run: - name: generate static files - command: grunt build - - persist_to_workspace: - root: ~/repo - paths: - - Dockerfile - - default.conf - - _site/* - -workflows: - build-deploy: - jobs: - - build diff --git a/.circleci/config.yml b/.circleci/config.yml index 99ebaa42c..9f747f09e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -53,7 +53,24 @@ jobs: - default.conf - _site/* + percy: + <<: *defaults + docker: + - image: circleci/ruby:2.6.4-node-browsers + steps: + - attach_workspace: + at: ~/repo + - run: npx percy snapshot _site + workflows: - build-deploy: + build-n-test: jobs: - build + - percy: + requires: + - build + filters: + branches: + ignore: + - /^renovate\/.*/ + - /^dependabot\/.*/ diff --git a/README.md b/README.md index 43911af52..5576c5c04 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@ [![Built with Almace Scaffolding](https://d349cztnlupsuf.cloudfront.net/amsf-badge.svg)](https://sparanoid.com/lab/amsf/) [![CircleCI](https://circleci.com/gh/sparanoid/almace-scaffolding.svg?style=svg)](https://circleci.com/gh/sparanoid/almace-scaffolding) [![devDependency Status](https://david-dm.org/sparanoid/almace-scaffolding/dev-status.svg)](https://david-dm.org/sparanoid/almace-scaffolding#info=devDependencies) +[![This project is using Percy.io for visual regression testing.](https://percy.io/static/images/percy-badge.svg)](https://percy.io/sparanoid/amsf) `AMSF`, a.k.a. **Almace Scaffolding**, a super-fast Jekyll framework fighting against the website obesity. It supports LiveReload, Sass, HTML minification, inlined stylesheets and more.