-
Notifications
You must be signed in to change notification settings - Fork 89
/
Copy path.travis.yml
45 lines (43 loc) · 1001 Bytes
/
.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
language: python
# Don't use the Travis Container-Based Infrastructure
sudo: required
dist: trusty
matrix:
include:
- os: linux
python: "3.5"
- os: linux
python: "3.6"
- os: linux
python: "3.6-dev"
- os: linux
python: "3.7-dev"
- os: linux
python: "nightly"
- os: osx
sudo: required
language: generic
allow_failures:
- python: "3.6-dev"
- python: "3.7-dev"
- python: "nightly"
- os: "osx"
addons:
apt:
packages:
- git
- pandoc
before_install: |
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
brew update;
brew install python3 pandoc;
python3 -m venv venv;
source venv/bin/activate;
pip install . test
fi
# command to install dependencies
install:
- "pip install --upgrade pip" # upgrade to latest pip (needed on py3.4)
- "pip install -r requirements-test.txt"
# command to run tests
script: "py.test --cov=git_repo --cov-report term-missing tests"