2015-12-08 08:27:12 +01:00
|
|
|
language: python
|
2016-06-21 20:19:40 +02:00
|
|
|
dist: trusty
|
2015-12-08 08:27:12 +01:00
|
|
|
python:
|
|
|
|
- "2.7"
|
2016-03-12 20:09:28 +01:00
|
|
|
- "3.4"
|
2015-12-08 08:27:12 +01:00
|
|
|
virtualenv:
|
|
|
|
system_site_packages: true
|
|
|
|
before_install:
|
|
|
|
- "sudo apt-get update -qq"
|
2019-07-10 12:59:50 +02:00
|
|
|
- "sudo apt-get install python-dev python-pip -y"
|
2015-12-08 08:27:12 +01:00
|
|
|
install:
|
2016-03-12 20:09:28 +01:00
|
|
|
- "pip install -r elodie/tests/requirements.txt"
|
|
|
|
- "pip install coveralls"
|
2015-12-09 08:40:01 +01:00
|
|
|
before_script:
|
|
|
|
- "mkdir ~/.elodie"
|
|
|
|
- "sed 's/your-api-key-goes-here/x8wQLqGhW7qK3sFpjYtVTogVtoMK0S8s/g' config.ini-sample > ~/.elodie/config.ini"
|
2016-09-14 05:35:28 +02:00
|
|
|
- "sed -i.bak 's/debug = False/debug = True/g' elodie/constants.py"
|
2016-06-24 07:19:50 +02:00
|
|
|
# Get exiftool 10.20 installed
|
|
|
|
- "export ELODIE_DIR=${PWD}"
|
2019-07-10 12:59:50 +02:00
|
|
|
- "wget http://www.sno.phy.queensu.ca/~phil/exiftool/Image-ExifTool-11.50.tar.gz"
|
|
|
|
- "gzip -dc Image-ExifTool-11.50.tar.gz | tar -xf -"
|
|
|
|
- "cd Image-ExifTool-11.50"
|
2016-06-24 07:19:50 +02:00
|
|
|
- "perl Makefile.PL"
|
|
|
|
- "sudo make install"
|
|
|
|
- "cd ${ELODIE_DIR}"
|
2016-04-12 09:52:04 +02:00
|
|
|
after_success:
|
|
|
|
- "coveralls"
|
2016-03-12 20:09:28 +01:00
|
|
|
script:
|
2019-07-11 10:51:34 +02:00
|
|
|
- "./elodie/tests/run_tests.py -w elodie/tests --with-coverage --cover-package=elodie"
|