forked from CAPESandbox/sflock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
40 lines (33 loc) · 1.01 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
language: python
matrix:
fast_finish: true
include:
- python: 2.7
- python: 3.5
- python: 3.6
- os: osx
language: generic
before_install:
- |
if [[ $TRAVIS_OS_NAME == "osx" ]]; then
brew update || brew update
brew install libmagic
# The following wasn't required in the past and therefore may become
# obsolete once again in the future. Let's wait and see.
wget https://bootstrap.pypa.io/get-pip.py
sudo python get-pip.py
sudo pip install virtualenv
virtualenv $HOME
source $HOME/bin/activate
fi
install:
- pip install -e .
- pip install pytest pytest-cov codecov coveralls mock
script:
- 'py.test --cov=sflock'
- '[[ $TRAVIS_OS_NAME == "linux" ]] && sudo apt-get -y install p7zip-full rar unace-nonfree cabextract || true'
- '[[ $TRAVIS_OS_NAME == "linux" ]] && py.test --cov=sflock --cov-append || true'
- python -c 'import sflock, sys ; assert "pkg_resources" not in sys.modules'
after_success:
- codecov
- coveralls