Build image in tests
Build again in test step, hopefully it will using cached layers of docker engine.
Test
test
Step 4/11 : RUN pip install pipenv
---> Using cache
---> 045a9a448bb0
Step 5/11 : EXPOSE 8000/tcp
---> Using cache
---> cb76e923f4c8
Step 6/11 : COPY Pipfile* .env ./
COPY failed: stat /var/lib/docker/tmp/docker-builder171498490/.env: no such file or directory
ERROR: Job failed: exit status 1
Test
flake8
Collecting six (from pathlib2; python_version < "3"->importlib-metadata; python_version < "3.8"->flake8)
Using cached https://files.pythonhosted.org/packages/ee/ff/48bde5c0f013094d729fe4b0316ba2a24774b3ff1c52d924a8a4cb04078a/six-1.15.0-py2.py3-none-any.whl
Collecting scandir; python_version < "3.5" (from pathlib2; python_version < "3"->importlib-metadata; python_version < "3.8"->flake8)
Installing collected packages: contextlib2, zipp, configparser, six, scandir, pathlib2, importlib-metadata, functools32, pyflakes, pycodestyle, typing, enum34, mccabe, flake8
Successfully installed configparser-4.0.2 contextlib2-0.6.0.post1 enum34-1.1.10 flake8-3.8.3 functools32-3.2.3.post2 importlib-metadata-1.7.0 mccabe-0.6.1 pathlib2-2.3.5 pycodestyle-2.6.0 pyflakes-2.2.0 scandir-1.10.0 six-1.15.0 typing-3.7.4.1 zipp-1.2.0
$ flake8
./recircle/manage.py:14:14: E999 SyntaxError: invalid syntax
./recircle/authorization/mixins.py:17:70: E999 SyntaxError: invalid syntax
ERROR: Job failed: exit status 1