-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
49 lines (48 loc) · 1.74 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
language: python
cache: pip
jobs:
allow_failures:
- os: osx
include:
- name: "Python 3.7.0 on Bionic Linux"
dist: bionic
python: 3.7
- name: "Python 3.8.0 on Bionic Linux"
dist: bionic
python: 3.8 # this works for Linux but is ignored on macOS or Windows
- name: "Python 3.7.4 on macOS"
os: osx
osx_image: xcode11.2 # Python 3.7.4 running on macOS 10.14.4
language: shell # 'language: python' is an error on Travis CI macOS
addons:
homebrew:
update: true
packages:
- python3
- r
before_install:
- python3 -m pip install --upgrade pytest pytest-cov codecov virtualenv
- virtualenv -p python3 --system-site-packages "$HOME/venv"
- source "$HOME/venv/bin/activate"
- name: "Python 3.8.0 on Windows"
os: windows # Windows 10.0.17134 N/A Build 17134
language: shell # 'language: python' is an error on Travis CI Windows
before_install:
- choco install python --version 3.8.0
- choco install r
- python -m pip install --upgrade pip
env: PATH=/c/Python38:/c/Python38/Scripts:$PATH
- stage: deploy
python: 3.7
script: skip
install:
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then ./.travis/linux_r_setup.sh; fi
- if [ "$TRAVIS_OS_NAME" != "windows" ]; then ./.travis/unix_r_install.sh; fi
- if [ "$TRAVIS_OS_NAME" == "windows" ]; then ./.travis/win32_r_install.bat; fi
- pip3 install -r requirements.txt
- pip3 install .
- pip3 install pytest-cov codecov
script:
- pytest --cov-report=html --cov=madbayes --cov-append tests_python
- NUMBA_DISABLE_JIT=0 pytest --cov-report=html --cov=madbayes --cov-append tests_numba
- codecov