blob: 3fe511dca7795aa247fd10b76d52e6c312158b22 [file] [log] [blame]
Dan Ruef51ede72017-06-07 16:50:33 -05001#!/bin/sh
2
3set -e
4
5if [ -z "$1" ] || [ ! -e "test/Dockerfile.${1}" ]; then
6 echo "USAGE: $0 [debian|centos]"
7 exit 1
8fi
9
Milosz Wasilewski327be522020-03-02 20:54:23 +000010python3 validate.py -p E501 W503 -s SC1091 SC2230
Dan Ruef51ede72017-06-07 16:50:33 -050011docker build -f test/Dockerfile."${1}" -t erp-"${1}" . && docker run --rm -it -v "$(pwd)":/work erp-"${1}"
12