gramps/.travis.yml
2016-05-18 20:38:35 -04:00

58 lines
1.5 KiB
YAML

# After changing this file, check it on:
# http://lint.travis-ci.org/
language: python
python:
- 3.4
sudo: false
cache: pip
addons:
apt:
packages:
- gir1.2-pango-1.0
- gir1.2-gtk-3.0
- xdg-utils
- librsvg2-common
- libglib2.0-dev
- intltool
# - python3-gobject Provided by python3-gi
- python3-gi
- python3-cairo
- python3-gi-cairo
- python3-bsddb3
- python3-dev
- python3-nose
- python3-mock
before_install:
- pip install --upgrade pip
- pip install --upgrade setuptools wheel nose coverage codecov
install:
- travis_retry pip install --upgrade pillow
- travis_retry pip install pyicu==1.8
# - cd $TRAVIS_BUILD_DIR
# $TRAVIS_BUILD_DIR is set to the location of the cloned repository:
# for example: /home/travis/build/gramps-project/gramps
- git clone -b master https://github.com/srossross/meta
- python setup.py build
before_script:
# - sudo Xvfb :99 -ac &
# - export DISPLAY=:99
- mkdir -p ~/.gramps/grampsdb/
script:
# --exclude=TestUser because of older version of mock
# without configure_mock
- PYTHONPATH=meta GRAMPS_RESOURCES=. nosetests3 --nologcapture --with-coverage --cover-package=gramps --exclude=TestcaseGenerator --exclude=vcard --exclude=merge_ref_test --exclude=user_test gramps
- if git --no-pager grep --color -n --full-name '[ ]$' -- \*.py; then
echo "ERROR - Trailing whitespace found in source file(s)";
exit 1;
fi
after_success:
- codecov