2015-03-13 08:59:10 +05:30
|
|
|
# After changing this file, check it on:
|
|
|
|
# http://lint.travis-ci.org/
|
|
|
|
|
2016-01-24 03:35:01 +05:30
|
|
|
language: python
|
2016-01-24 03:50:23 +05:30
|
|
|
#python:
|
|
|
|
# - 3.4
|
2015-03-13 08:59:10 +05:30
|
|
|
|
2016-02-13 18:39:03 +05:30
|
|
|
before_install:
|
|
|
|
- sudo pip install --upgrade pip
|
|
|
|
- sudo pip install --upgrade nose coverage codecov
|
|
|
|
|
2015-03-13 08:59:10 +05:30
|
|
|
install:
|
|
|
|
- time sudo apt-get update
|
2015-08-19 19:02:57 +05:30
|
|
|
- travis_retry sudo apt-get install gir1.2-pango gir1.2-gtk xdg-utils librsvg2-common libglib2.0-dev intltool
|
2016-01-24 02:46:37 +05:30
|
|
|
- travis_retry sudo apt-get install python3-gobject python3-gi python3-cairo python3-gi-cairo python3-bsddb3 python3-dev python3-nose
|
2016-01-24 04:20:27 +05:30
|
|
|
- travis_retry sudo apt-get install python3-mock
|
2016-01-24 04:30:58 +05:30
|
|
|
# - travis_retry sudo apt-get install python3-icu
|
2016-01-24 04:27:23 +05:30
|
|
|
|
|
|
|
# - travis_retry sudo pip install pyicu==1.8
|
2015-08-19 19:02:57 +05:30
|
|
|
|
|
|
|
- cd $TRAVIS_BUILD_DIR
|
|
|
|
# $TRAVIS_BUILD_DIR is set to the location of the cloned repository:
|
|
|
|
# for example: /home/travis/build/gramps-project/gramps
|
2016-01-24 03:50:23 +05:30
|
|
|
- python3 setup.py build
|
2015-03-13 08:59:10 +05:30
|
|
|
|
2015-03-15 11:05:14 +05:30
|
|
|
#before_script:
|
|
|
|
# - sudo Xvfb :99 -ac &
|
|
|
|
# - export DISPLAY=:99
|
2015-03-15 10:36:09 +05:30
|
|
|
|
2015-03-13 08:59:10 +05:30
|
|
|
script:
|
2015-08-19 19:02:57 +05:30
|
|
|
- mkdir -p ~/.gramps/grampsdb/
|
2016-01-24 04:20:27 +05:30
|
|
|
# --exclude=TestUser because of older version of mock
|
|
|
|
# without configure_mock
|
2016-02-13 18:39:03 +05:30
|
|
|
- nosetests3 --with-coverage --cover-package=gramps --exclude=TestcaseGenerator --exclude=vcard --exclude=merge_ref_test --exclude=user_test gramps
|
|
|
|
|
|
|
|
after_success:
|
|
|
|
- codecov
|
|
|
|
|