language: python
matrix:
  include:
    - python: "3.6"
    - python: "3.7"
      dist: xenial
      sudo: true
  
before_install:
  - pip install pipenv
  - npm install -g npm@"^6.4.0"

install:
  - pipenv install --dev --deploy
  - npm ci
  - npx webpack --config webpack.development.config.js
    
before_script:
  - pipenv check
  - black . --check --exclude node_modules/
  - flake8 --exclude node_modules/ || true

script:
  - pipenv run python manage.py test

language: python
matrix:
  include:
    - python: "3.6"
      dist: trusty
      sudo: false
    - python: "3.7"
      dist: xenial
      sudo: true
  
before_install:
  - pip install pipenv
  - npm install -g npm@"^6.4.0"

install:
  - pipenv install --dev --deploy
  - npm ci
  - npx webpack --config webpack.development.config.js
    
before_script:
  - pipenv check
  - black . --check --exclude node_modules/
  - flake8 --exclude node_modules/ || true

script:
  - pipenv run python manage.py test

Use Trusty for older Python
Use Trusty for older Python
