-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
36 lines (31 loc) · 1.14 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
language: python
matrix:
include:
# Use the built in venv for linux builds
- os: linux
python: 3.3
- os: linux
python: 3.4
- os: linux
python: 3.5
- os: linux
python: 3.6
# Use generic language for osx
- os: osx
language: generic
# Perform the manual steps on osx to install python3 and activate venv
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install python3 ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install findutils ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install gnu-sed ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then virtualenv venv -p python3 ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then source venv/bin/activate ; fi
install:
- travis_retry pip install pytest coverage flake8 pytest-cov pytest-flake8
- travis_retry pip install --upgrade pytest
- travis_retry python setup.py develop
script:
py.test --cov=scripnix/pybin --cov=tests --cov-report=term-missing --cov-fail-under=80 --flake8 scripnix tests
after_success:
- bash <(curl -s https://codecov.io/bash)