Skip to content

Commit

Permalink
#618 change test yaml file
Browse files Browse the repository at this point in the history
  • Loading branch information
gregurcom committed Apr 10, 2024
1 parent 6435d74 commit 91f2467
Show file tree
Hide file tree
Showing 7 changed files with 64 additions and 28 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

### 1.37

* Update project from YAML file

### 0.1.28
* Added the diffy screenshot:create-baseline command
* Added the diffy screenshot:set-baseline command
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ Great for building integrations for your CI/CD tools. Allows scription taking sc
Download latest release from [https://github.com/DiffyWebsite/diffy-cli/releases](https://github.com/DiffyWebsite/diffy-cli/releases) page. Download just `diffy.phar` file. No need for all the source code. You can copy file to your executables so it is available everywhere.

```shell script
chmod a+x diffy.phar
cp diffy.phar /usr/local/bin/diffy
wget -O /usr/local/bin/diffy https://github.com/diffywebsite/diffy-cli/releases/latest/download/diffy.phar
chmod a+x /usr/local/bin/diffy
```

### Installion with Composer
Expand Down Expand Up @@ -97,7 +97,7 @@ If you want to update your config (For example, from CICD)
```shell script
diffy project:update PROJECT_ID ./examples/diffy_update_project.json
```
See the ./examples/diffy_update_project.json or ./examples/diffy_update_project.yaml file for a valid config file.
See the ./examples/diffy_update_project.json or ./examples/diffy-project-projectID-demo-test-project.yaml file for a valid config file.

For multiple projects
```shell script
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.33
0.1.37
3 changes: 3 additions & 0 deletions custom-vs-baseline.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
CUSTOM_URL="https://diffy.website"
CUSTOM_SCREENSHOT_ID=$(diffy screenshot:create 22119 custom --envUrl=${MULTIDEV_SITE_URL})
diffy diff:create 22119 ${CUSTOM_SCREENSHOT_ID} 520974
49 changes: 49 additions & 0 deletions examples/diffy-project-projectID-demo-test-project.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
basic:
name: 'Desk'
environments:
production: 'https://wordpress.diffy.website'
staging: 'http://stage.wordpress.diffy.website'
development: ''
breakpoints:
- 640
- 1024
- 1200
pages:
- /
- /2019/01
- /sample-page
- /2019/03/12/hello-world
- /category/uncategorized
- /2019/03/01/delectus-quia-esse-aut
monitoring:
days: { }
type: ''
advanced:
mask: ''
remove: ''
isolate: ''
delay: 10
scroll: false
headers:
- { header: user-agent, value: Googlebot-Image/1.0 }
cookies: ''
custom_js: ''
custom_css: ''
mock_content: ''
login:
type: ''
click_element: false
click_element_selector: ''
login_url: ''
username: ''
password: ''
username_selector: ''
password_selector: ''
submit_selector: ''
after_login_selector: ''
performance:
workers_production: 30
workers_nonproduction: 10
workers_production_delay: 0
workers_nonproduction_delay: 0
stabilize: false
20 changes: 0 additions & 20 deletions examples/diffy_update_project.yaml

This file was deleted.

8 changes: 4 additions & 4 deletions src/Commands/ProjectCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,15 +175,15 @@ public function createCompare(
}

/**
* Update single project configuration
* Update single project configuration from YAML file
*
* @command project:update
*
* @param int $projectId Id of the project.
* @param string $configurationPath Path to the json config file.
* @param string $configurationPath Path to the YAML config file.
*
* @usage project:update 342 ./examples/diffy_update_project.json
* Updates given project ID with the diffy config.
* @usage project:update 342 ./examples/diffy_update_project.yaml
* Configuration can be downloaded from Project's settings page.
*
* @throws InvalidArgumentException
*/
Expand Down

0 comments on commit 91f2467

Please sign in to comment.