forked from wummel/patool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
52 lines (46 loc) · 1.53 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
language: python
python:
- "2.7"
- "3.3"
- "3.4"
- "3.5"
- "3.6"
# whitelist
branches:
only:
- master
# install some archive programs
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq archmage arj bzip2 lbzip2 pbzip2 cabextract ncompress cpio bsdcpio lzop lcab p7zip p7zip-full zip unzip rpm2cpio binutils arc nomarch unalz lrzip bsdtar rzip zoo xdms lzip plzip clzip pdlzip sharutils flac unadf zoo zpaq libchm-bin genisoimage rpm
# apt errors:
#E: Package 'p7zip-rar' has no installation candidate
#E: Package 'rar' has no installation candidate
#E: Package 'unrar' has no installation candidate
#E: Package 'lha' has no installation candidate
#E: Package 'orange' has no installation candidate
#E: Unable to locate package unace-nonfree
#E: Unable to locate package zopfli
# Note: pigz gives test errors on Travis CI since option "--" is not
# supported, but pigz 2.3.1 supports it. Must be an older version.
# lzma is shipped with python 3 but requires 3rd party bindings on python2
- if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then pip install pyliblzma; fi
# command to install dependencies
install:
- pip install -r requirements.txt
- pip install -q codecov
# command to run tests
script:
- make localbuild
- if [ $TRAVIS_PYTHON_VERSION = 3.3 ]; then
COVERAGE= ;
PYTEST="python -m pytest";
else
COVERAGE="coverage run" ;
PYTEST=`which pytest`;
fi
- $COVERAGE $PYTEST -v tests/
after_success:
- if [ ! -z "$COVERAGE" ]; then codecov; fi
#notifications:
# email: false