language: python
python:
  - "3.5"
  - "3.6"
  #- "3.7"

addons:
  chrome: stable # Just to be sure
  apt:
    packages:
      - libmysqlclient-dev
      - libmagickwand-dev
      - poppler-utils
      - tesseract-ocr

cache:
  pip: true
  npm: true
  apt: true

install:
  - npm install --ci
  - pip install poetry --upgrade
  - poetry install
  # Add pygobject to the virtualenv; Disabled because gi only works with system python
  # - ln -s /usr/lib/python$TRAVIS_PYTHON_VERSION/dist-packages/gi $VIRTUAL_ENV/lib/*/site-packages/

script:
  # Ensure our migrations are working (squashing can cause weird problems)
  - ENV_PATH=etc/env-test poetry run ./manage.py migrate
  - npm run build:dev
  - npm run build:prod
  - poetry run ./manage.py test

language: python
python:
  - "3.5"
  - "3.6"
  #- "3.7"

addons:
  chrome: stable # Just to be sure
  apt:
    packages:
      - libmysqlclient-dev
      - libmagickwand-dev
      - poppler-utils
      - tesseract-ocr

cache:
  pip: true
  npm: true
  apt: true

install:
  - npm install --ci
  - pip install poetry --upgrade
  - poetry install
  # Add pygobject to the virtualenv; Disabled because gi only works with system python
  # - ln -s /usr/lib/python$TRAVIS_PYTHON_VERSION/dist-packages/gi $VIRTUAL_ENV/lib/*/site-packages/

script:
  # Ensure our migrations are working (squashing can cause weird problems)
  - ENV_PATH=etc/env-test poetry run python ./manage.py migrate
  - npm run build:dev
  - npm run build:prod
  - poetry run python ./manage.py test

Work around new poetry bug
Work around new poetry bug

https://github.com/sdispater/poetry/issues/624
