ordigi/.travis.yml

31 lines
915 B
YAML

language: python
dist: trusty
python:
- "2.7"
- "3.4"
virtualenv:
system_site_packages: true
before_install:
- "sudo apt-get update -qq"
- "sudo apt-get install python-dev python-pip libimage-exiftool-perl -y"
install:
- "pip install -r elodie/tests/requirements.txt"
- "pip install coveralls"
# command to run tests
# test mapquest key
before_script:
- "mkdir ~/.elodie"
- "sed 's/your-api-key-goes-here/x8wQLqGhW7qK3sFpjYtVTogVtoMK0S8s/g' config.ini-sample > ~/.elodie/config.ini"
# Get exiftool 10.20 installed
- "export ELODIE_DIR=${PWD}"
- "wget http://www.sno.phy.queensu.ca/~phil/exiftool/Image-ExifTool-10.20.tar.gz"
- "gzip -dc Image-ExifTool-10.20.tar.gz | tar -xf -"
- "cd Image-ExifTool-10.20"
- "perl Makefile.PL"
- "sudo make install"
- "cd ${ELODIE_DIR}"
after_success:
- "coveralls"
script:
- "nosetests --with-coverage --cover-package=elodie -w elodie/tests"