language: python
dist: xenial
sudo: true
matrix:
  include:
    - python: 2.7
    - python: 3.5
      env: PYTHONFAULTHANDLER=1
    - python: 3.6
      env: PYTHONFAULTHANDLER=1
    - python: 3.7
      env: PYTHONFAULTHANDLER=1
before_install:
  - sudo apt-get update
  - sudo apt-get install -y python3-dev python3-gi python3-gi-cairo gir1.2-gtk-3.0 libgirepository1.0-dev libcairo2-dev
  - sudo apt-get install -y gdb  # Install gdb for reading core dumps
install:
  - pip install -r requirements.txt
  - pip install -r requirements2.txt
before_script:
  - ulimit -c unlimited -S  # Enable core dumps
script:
  - pytest
after_success:
  - coveralls
after_failure:
  - COREFILE=$(find . -maxdepth 1 -name "core*" | head -n 1)  # Find core dump file
  - if [[ -f "$COREFILE" ]]; then gdb -c "$COREFILE" example -ex "thread apply all bt" -ex "set pagination 0" -batch; fi
language: python
dist: xenial
sudo: true
matrix:
  include:
    - python: 2.7
    - python: 3.5
      env: PYTHONFAULTHANDLER=1
    - python: 3.6
      env: PYTHONFAULTHANDLER=1
    - python: 3.7
      env: PYTHONFAULTHANDLER=1
before_install:
  - sudo apt-get update
  - sudo apt-get install -y python3-dev python3-gi python3-gi-cairo gir1.2-gtk-3.0 libgirepository1.0-dev libcairo2-dev
  - sudo apt-get install -y gdb  # Install gdb for reading core dumps
install:
  - pip install -r requirements.txt
  - pip install -r requirements2.txt
before_script:
  - ulimit -c unlimited -S  # Enable core dumps
script:
  - pytest
after_success:
  - coveralls
after_failure:
  - COREFILE=$(find . -maxdepth 1 -name "core*" | head -n 1)  # Find core dump file
  - if [[ -f "$COREFILE" ]]; then gdb -c "$COREFILE" python -ex "thread apply all bt" -ex "set pagination 0" -batch; fi
Change from example to python for gdb
Change from example to python for gdb

Signed-off-by: Dan Yeaw <2591e5f46f28d303f9dc027d475a5c60d8dea17a@yeaw.me>
