-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
84 lines (82 loc) · 1.99 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
language: python
sudo: false
matrix:
# experimental travis support, so allow for failure.
allow_failures:
- os: osx
include:
- python: 2.7
addons:
apt:
packages:
- libfuse-dev
env: UNRAR_LIB_PATH=./src/libunrar/src/libunrar.so
- python: 3.3
addons:
apt:
packages:
- libfuse-dev
env: UNRAR_LIB_PATH=./src/libunrar/src/libunrar.so
- python: 3.4
addons:
apt:
packages:
- libfuse-dev
env: UNRAR_LIB_PATH=./src/libunrar/src/libunrar.so
- python: 3.5
addons:
apt:
packages:
- libfuse-dev
env: UNRAR_LIB_PATH=./src/libunrar/src/libunrar.so
- python: pypy
addons:
apt:
packages:
- libfuse-dev
env: UNRAR_LIB_PATH=./src/libunrar/src/libunrar.so
- language: generic
os: osx
env: PY_VER=3.4.5
- language: generic
os: osx
env: PY_VER=3.5.2
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew update || brew update ;
brew install pyenv ;
brew outdated pyenv || brew upgrade pyenv ;
brew install caskroom/cask/osxfuse ;
pyenv install $PY_VER ;
pyenv global $PY_VER ;
pyenv rehash ;
python -m pip install --user virtualenv ;
python -m virtualenv ~/.venv ;
source ~/.venv/bin/activate ;
fi
# only building/testing unrar on linux
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
cd src ;
git clone https://github.com/metatoaster/libunrar ;
cd libunrar/src ;
make lib ;
cd ../../.. ;
fi
install:
- pip install nose coverage unrar
- python setup.py develop
script:
- nosetests --with-coverage --cover-package=explosive.fuse
after_success:
# only submit coverage when testing under linux.
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
pip install coveralls ;
coveralls ;
fi
branches:
only:
- master
- 0.1.x
- 0.2.x
- 0.3.x
- 0.4.x