Skip to content

Commit bd51d3e

Browse files
committed
Use npm install --only=dev over --dev
1 parent 84cde12 commit bd51d3e

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.travis.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ matrix:
2828
- env: DJANGO=master
2929
install:
3030
- pip install -qU pip tox codecov
31-
- npm install --dev
31+
- npm install --only=dev
3232
before_script:
3333
- mkdir bin
3434
- curl -O https://chromedriver.storage.googleapis.com/${CHROME_DRIVER_VERSION}/chromedriver_linux64.zip
@@ -52,13 +52,13 @@ jobs:
5252
include:
5353
- language: node_js
5454
addons: {}
55-
install: npm install --dev
55+
install: npm install --only=dev
5656
script: npm test
5757
node_js: lts/*
5858
cache: npm
5959
- stage: deploy
6060
python: "3.7"
61-
install: npm install --dev
61+
install: npm install --only=dev
6262
script: skip
6363
after_success: true
6464
deploy:

tests/testapp/settings.py

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
55
DEBUG = True
66

7+
ALLOWED_HOSTS = ['127.0.0.1', 'localhost']
8+
79
DATABASES = {
810
'default': {
911
'ENGINE': 'django.db.backends.sqlite3',

0 commit comments

Comments
 (0)