forked from log2timeline/plaso
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
26 lines (26 loc) · 1.11 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
language: python
matrix:
include:
- os: linux
dist: trusty
sudo: required
python: 2.7
- os: osx
language: generic
env: PYTHONPATH=/Library/Python/2.7/site-packages/
exclude:
- os: linux
dist: trusty
sudo: required
python: 3.4
install:
- ./config/travis/install.sh
script:
- if test `uname -s` = 'Linux' && test ${TRAVIS_PYTHON_VERSION} = "2.7"; then coverage run --source=plaso --omit="*_test*,*__init__*,*test_lib*" ./run_tests.py; else ./run_tests.py; fi
- if test `uname -s` = 'Linux'; then python setup.py build; fi
- if test `uname -s` = 'Linux'; then python setup.py sdist; fi
- if test `uname -s` = 'Linux'; then python setup.py bdist; fi
- if test `uname -s` = 'Linux'; then mkdir -p ${PWD}/tmp/lib/python${TRAVIS_PYTHON_VERSION}/site-packages/ && PYTHONPATH=${PWD}/tmp/lib/python${TRAVIS_PYTHON_VERSION}/site-packages/ python setup.py install --prefix=${PWD}/tmp/; fi
- PYTHONPATH=${PYTHONPATH}:. ./tests/end-to-end.py --debug -c config/end-to-end.ini
after_success:
- if test `uname -s` = 'Linux' && test ${TRAVIS_PYTHON_VERSION} = "2.7"; then coveralls --verbose; fi