forked from pyamg/pyamg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
55 lines (50 loc) · 1.3 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
language: python
matrix:
include:
- name: "Xenial Linux, Python 2.7"
python: 2.7
os: linux
dist: trusty
sudo: false
- name: "Xenial Linux, Python 3.5"
python: 3.5
os: linux
dist: xenial
sudo: false
- name: "Xenial Linux, Python 3.6"
python: 3.6
os: linux
dist: xenial
sudo: false
- name: "Xenial Linux, Python 3.7"
python: 3.7
os: linux
dist: xenial
sudo: false
- name: "Xenial Linux, Python 3.8"
python: 3.8
os: linux
dist: xenial
sudo: false
- name: "MacOS with Homebrew Python 3"
os: osx
language: generic
before_install:
- |
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew update
brew unlink python@2
brew upgrade python@3
fi
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then export PYTHON=python2; fi
- if [[ "$TRAVIS_PYTHON_VERSION" != "2.7" ]]; then export PYTHON=python3; fi
- $PYTHON --version
- $PYTHON -m pip install --upgrade pip
- $PYTHON -m pip install -r requirements.txt
- $PYTHON -m pip install pytest-cov codecov
install:
- $PYTHON -m pip install -e .
script:
- pytest --cov=. --cov-report=term
after_success:
- if [[ "$TRAVIS_OS_NAME" == "linux" && "$TRAVIS_PYTHON_VERSION" == "3.7" ]]; then codecov; fi