summaryrefslogtreecommitdiffstats
path: root/test.sh
blob: 91d0e4ca5aadee4c9f4a79123b85bc30a96d41fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash
##############################################################################
# Copyright (c) 2018 Parker Berberian, Sawyer Bergeron, and others.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################

# first, basic lint with flake8
find . -type f -name "*.py" -not -name "manage.py" -not -path "*/migrations/*" | xargs flake8 --count

# this file should be executed from the dir it is in
docker exec -it dg01 python manage.py test