Change CI global befor_script to stage local before_script

2 jobs from CI in 1 minute 12 seconds (queued for 5 seconds)
Status Job ID Name Coverage
  Lint
passed #1018
flake8

00:19

 
  Test
failed #1019
test

00:53

 
Test test
  File "/root/.local/share/virtualenvs/portal-HfpVvx8U/lib/python3.6/site-packages/django/apps/config.py", line 90, in create
module = import_module(entry)
File "/root/.local/share/virtualenvs/portal-HfpVvx8U/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'rest_framework_swagger'
ERROR: Job failed: exit code 1