mirror of
https://github.com/netbox-community/netbox.git
synced 2025-12-20 04:12:25 -06:00
Merge upstream v2.8.5 into develop
# Conflicts: # netbox/dcim/api/serializers.py # netbox/dcim/models/__init__.py # netbox/extras/constants.py # netbox/netbox/admin.py # netbox/templates/users/base.html # requirements.txt
This commit is contained in:
@@ -34,11 +34,8 @@ if [[ $RC != 0 ]]; then
|
||||
EXIT=$RC
|
||||
fi
|
||||
|
||||
# Prepare configuration file for use in CI
|
||||
CONFIG="netbox/netbox/configuration.py"
|
||||
cp netbox/netbox/configuration.example.py $CONFIG
|
||||
sed -i -e "s/ALLOWED_HOSTS = \[\]/ALLOWED_HOSTS = \['*'\]/g" $CONFIG
|
||||
sed -i -e "s/SECRET_KEY = ''/SECRET_KEY = 'netboxci'/g" $CONFIG
|
||||
# Point to the testing configuration file for use in CI
|
||||
ln -s configuration.testing.py netbox/netbox/configuration.py
|
||||
|
||||
# Run NetBox tests
|
||||
coverage run --source="netbox/" netbox/manage.py test netbox/
|
||||
|
||||
Reference in New Issue
Block a user