Skip to content

Instantly share code, notes, and snippets.

@AdrienLemaire AdrienLemaire/css-exec.sh
Last active Feb 4, 2019

Embed
What would you like to do?
backstopjs docker
#!/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
---
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
{
"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
You can’t perform that action at this time.