markdown DevOps的

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown DevOps的相关的知识,希望对你有一定的参考价值。

# Visual Regression Tests

Visual Regression tests are useful for confirming that non-visual updates to code don't affect your website's visuals
(If your changes include visual updates e.g. changes to a theme, don't run this test as it will most likely fail).

In the config file, specify which pages you would like to run visual regression on, as well as elements you wish to ignore.

After you push any code changes to `https://updates-<sitename>.pantheonsite.io`, the program will do the following:
1. Run headless Chrome and navigate to `https://updates-<sitename>.pantheonsite.io` and `https://live-<sitename>.pantheonsite.io`
2. Compare the specified pages, while ignoring the specified elements
3. If discrepancies exist outside of a certain margin, the test will fail and a browser window will open that shows where the websites differ. Exiting the program or closing this browser window will conclude the test.
   
# How to do CI Testing?

## Hosting project on Github (or Bitbucket?)

Host websites on Github, which can easily hook deploys into CircleCI

MultiDevs each act as a branch, to be merged into `dev`

The following tool seems to integrate it with Terminus:
https://github.com/pantheon-systems/terminus-build-tools-plugin

### TODO:
- create_site script: set Github as remote for Pantheon's provided git url, hooks CircleCI to Github
- setup_local_env: clone dev branch, copy db to local machine??, install required modules for testing/running site


以上是关于markdown DevOps的的主要内容,如果未能解决你的问题,请参考以下文章

markdown devops圣经

markdown DevOps提示

markdown 其他Devops

markdown Devops最佳实践

markdown DevOps开发设计原则和实践

markdown Docker,Kubernetes,AWS,DevOps链接