Skip to content

Commit

Permalink
continuously monitor performance
Browse files Browse the repository at this point in the history
  • Loading branch information
honzajavorek committed May 11, 2020
1 parent f6e7eda commit 1a74355
Show file tree
Hide file tree
Showing 7 changed files with 752 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,18 @@ jobs:
at: "~"
- run: pipenv run check-scrapers

check-performance:
executor: python-js
steps:
- attach_workspace:
at: "~"
- run: pipenv run check-performance
- run:
command: tar -cvzf lighthouse.tar.gz ./lighthouse
when: always
- store_artifacts:
path: ./lighthouse.tar.gz # HTML and JSON reports from lighthouse


workflows:
version: 2
Expand Down Expand Up @@ -154,6 +166,9 @@ workflows:
- check-links:
requires:
- fetch-build
- check-performance:
requires:
- deploy
triggers:
- schedule:
cron: "0 4 * * *"
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,6 @@ backup.tar.gz
.now
.env.build
public.tar.gz

# Lighthouse
/lighthouse/
2 changes: 2 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ screenshots = "python scripts/screenshots.py"
check-links = "python scripts/check_links.py"
check-anchors = "python scripts/check_anchors.py"
check-scrapers = "python scripts/check_scrapers.py"
check-performance = "python scripts/check_performance.py"
serve = "npx gulp serve"

[packages]
Expand All @@ -37,6 +38,7 @@ pytest = "*"
cssselect = "*"
isort = {extras = ["pipfile"],version = "*"}
pync = "*"
python-slugify = "*"

[requires]
python_version = "3.7"
16 changes: 15 additions & 1 deletion Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 1a74355

Please sign in to comment.