-
Notifications
You must be signed in to change notification settings - Fork 8
/
.travis.yml
107 lines (88 loc) · 2.55 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
dist: xenial
language: python
python:
- 3.6
- 3.7
- 3.7-dev
- 3.8
- 3.8-dev
- 3.9-dev
jobs:
include:
- name: "Python 3.7.5 on macOS 10.14"
os: osx
osx_image: xcode10.2 # Python 3.7.5, macOS 10.14.3
language: shell
before_install:
- python3 --version
- pip3 install --upgrade pip setuptools wheel
- pip3 install -r requirements.txt
- pip3 install --upgrade pytest pytest-cov
- pip3 install codecov
script: python3 -m pytest --ignore tests/test_main --ignore tests/test_preprocess/test_tte_list.py
after_success: python 3 -m codecov
- name: "Python 3.7.4 on Windows"
os: windows # Windows 10.0.17134 N/A Build 17134
language: shell
before_install:
- choco install python --version 3.7.4
- python --version
- python -m pip install --upgrade pip setuptools wheel
- pip3 install -r requirements.txt
- pip3 install --upgrade pytest pytest-cov
- pip3 install codecov
- python setup.py install
env: PATH=/c/Python37:/c/Python37/Scripts:$PATH
- name: "test pip install"
before_install:
- python --version
- python -m pip install --upgrade pip
- pip install 'pytest<4.6' --force-reinstall
- pip install pytest-cov
- pip install codecov
install:
- pip install pygrb
- pip freeze
- name: "test nested sampling"
language: generic
install:
- source ./texlive/texlive_install.sh
language: python
- python setup.py sdist bdist_wheel
script:
- pytest -s tests/test_main/ --cov
- name: "test tte list"
install:
- python setup.py sdist bdist_wheel
script:
- pytest -s --cov --ignore tests/test_main
allow_failures:
- python: 3.7-dev
- python: 3.8-dev
- python: 3.9-dev
- os: windows
- os: osx
- name: "test pip install"
- name: "test nested sampling"
- name: "test tte list"
fast_finish: true
before_install:
- python --version
- python -m pip install --upgrade pip setuptools wheel
- pip install -r requirements.txt
- python setup.py install
- pip install 'pytest<4.6' --force-reinstall
- pip install pytest-cov
- pip install codecov
install:
- python setup.py sdist bdist_wheel
script:
- pytest --cov --ignore tests/test_main --ignore tests/test_preprocess/test_tte_list.py
after_success:
- codecov
notifications:
email:
recipients:
- jims.astronomy@gmail.com
on_success: change
on_failure: change