Last active
February 4, 2019 09:12
-
-
Save AdrienLemaire/d12826e0e116d4770226c11ca43b869b to your computer and use it in GitHub Desktop.
backstopjs docker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
command=$1 | |
shift | |
yarn css:config | |
cd ../GOunite/infrastructure/ | |
docker-compose run --no-deps backstop $command --config=backstop.json $@ | |
cd - | |
if [ "$command" = "test" ]; then | |
if [ "$(uname)" == 'Darwin' ]; then | |
open backstop_data/html_report/index.html | |
else | |
xdg-open backstop_data/html_report/index.html | |
fi | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
version: '3.4' | |
services: | |
reverse-proxy: | |
build: ./reverse-proxy | |
ports: | |
- 443:443 | |
- 8080:8080 | |
backstop: | |
image: backstopjs/backstopjs | |
container_name: backstop | |
depends_on: | |
- reverse-proxy | |
volumes: | |
- ../../Frontend:/src | |
shm_size: 512m |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"scripts": { | |
"ci:css": "hooks/ci-css", | |
"css:approve": "hooks/css-approve", | |
"css:config": "hooks/css-config", | |
"css:reference": "hooks/css-exec reference", | |
"css:test": "hooks/css-exec test" | |
}, | |
"husky": { | |
"hooks": { | |
"pre-commit": "lint-staged && yarn type-check && hooks/css-regression" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment