Permalink
Fetching contributors…
Cannot retrieve contributors at this time
78 lines (63 sloc) 2.17 KB
services:
- docker
env:
global:
- ON_TRAVIS=true
matrix:
#- QGIS_VERSION_TAG=release-2_8
- QGIS_VERSION_TAG=release-2_14
language: python
cache:
directories:
- $HOME/.cache/pip
python:
- "2.7"
virtualenv:
system_site_packages: true
branches:
only:
- master
- develop
- experimental
addons:
apt:
packages:
- git
- python-software-properties
before_install:
#- docker pull elpaso/qgis-testing-environment:latest
#- docker pull elpaso/qgis-testing-environment:release-2_8
#- docker pull elpaso/qgis-testing-environment:release-2_14
- docker pull elpaso/qgis-testing-environment:${QGIS_VERSION_TAG}
install:
- pip install --upgrade pip
- pip install --upgrade pep8
- echo "Checking out test data at" `date`
- make testdata
- docker run -d --name qgis-testing-environment -v ${TRAVIS_BUILD_DIR}_data:/inasafe_data -v ${TRAVIS_BUILD_DIR}:/tests_directory -e ON_TRAVIS=${ON_TRAVIS} -e DISPLAY=:99 elpaso/qgis-testing-environment:${QGIS_VERSION_TAG}
- sleep 10
- docker exec -it qgis-testing-environment sh -c "qgis_setup.sh inasafe"
# TEMPORARY HACK
- docker exec -it qgis-testing-environment sh -c "cp /tests_directory/qgis_testrunner.sh /usr/bin/qgis_testrunner.sh"
- docker exec -it qgis-testing-environment sh -c "chmod 777 /usr/bin/qgis_testrunner.sh"
- docker exec -it qgis-testing-environment sh -c "ln -s /tests_directory /root/.qgis2/python/plugins/inasafe"
script:
- make pep8
- docker exec -it qgis-testing-environment sh -c "qgis_testrunner.sh test_suite.test_package"
#- xvfb-run --server-args="-screen 0, 1024x768x24" nosetests -v --with-id --with-xcoverage --with-xunit --verbose --cover-package=safe safe
notifications:
irc:
channels:
- "irc.freenode.org#inasafe"
use_notice: true
webhooks:
urls:
- https://webhooks.gitter.im/e/a021ad05fffeac7b0a92L
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: always # options: [always|never|change] default: always
email:
- tim@kartoza.com
- ismail@kartoza.com
- rizky@kartoza.com
- etienne@kartoza.com