Skip to content

Commit

Permalink
Prettify
Browse files Browse the repository at this point in the history
  • Loading branch information
antiphoton committed Sep 7, 2021
1 parent b7f01c8 commit 1149c29
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions validator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,24 +130,24 @@ In the case the test passes in your local machine but fails in Circle CI,
you can use docker to reproduce the test errors.
1. Start an interacitve docker container
```bash
docker run -it ubuntu bash
```
```bash
docker run -it ubuntu bash
```
1. Run following commands in the container. Note that you are already the `root` user inside the docker container.
```bash
apt update
apt install -y curl git gpg sudo
curl -fsSL https://deb.nodesource.com/setup_16.x | bash -
apt install -y nodejs
git clone https://github.com/ampproject/amphtml.git
cd amphtml
npm install
.circleci/install_validator_dependencies.sh
amp validator-cpp && echo SUCCESS || echo FAIL
```
```bash
apt update
apt install -y curl git gpg sudo
curl -fsSL https://deb.nodesource.com/setup_16.x | bash -
apt install -y nodejs
git clone https://github.com/ampproject/amphtml.git
cd amphtml
npm install
.circleci/install_validator_dependencies.sh
amp validator-cpp && echo SUCCESS || echo FAIL
```
1. To see more information of the tests
```bash
sed -i 's/--test_output=errors//' build-system/tasks/validator.js
sed -i 's/--ui_event_filters=INFO//' build-system/tasks/validator.js
```
Then re-run `amp validator-cpp && echo SUCCESS || echo FAIL`.
```bash
sed -i 's/--test_output=errors//' build-system/tasks/validator.js
sed -i 's/--ui_event_filters=INFO//' build-system/tasks/validator.js
```
Then re-run `amp validator-cpp && echo SUCCESS || echo FAIL`.

0 comments on commit 1149c29

Please sign in to comment.