File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,12 @@ title: "Testing Config Files Locally"
4
4
description : " Example CircleCI 2.0 Configuration Files"
5
5
---
6
6
7
+ <div class =" alert alert-info " role =" alert " >
8
+ <b >Note:</b > This document describes how to test and validate your config through the CircleCI API.
9
+ It is also possible to install the <a href =" {{ site.baseurl }}/2.0/local-cli/#overview " >CircleCI
10
+ CLI</a >, which allows you to <a href =" {{ site.baseurl }}/2.0/local-cli/#validate-a-circleci-config " >validate</a > your CircleCI config locally.
11
+ </div >
12
+
7
13
To add a script that tests your config file locally, complete the following steps:
8
14
9
15
1 . Add a shell script in your ` .circleci ` directory, for example, ` run-build-locally.sh ` .
Original file line number Diff line number Diff line change @@ -107,6 +107,8 @@ $ circleci config validate
107
107
Config file at .circleci/config.yml is valid
108
108
```
109
109
110
+ You can also [ validate your config through CircleCI's API] ({{ site.baseurl }}/2.0/examples/).
111
+
110
112
### Run validate using git hooks
111
113
{:.no_toc}
112
114
You can’t perform that action at this time.
0 commit comments