-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
30 lines (30 loc) · 1.47 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
language: python # this works for Linux but is an error on macOS or Windows
matrix:
include:
- name: "Python 3.7.1 on Xenial Linux"
python: 3.7 # this works for Linux but is ignored on macOS or Windows
dist: xenial # required for Python >= 3.7
- name: "Python 3.7.2 on macOS"
os: osx
osx_image: xcode10.2 # Python 3.7.2 running on macOS 10.14.3
language: shell # 'language: python' is an error on Travis CI macOS
# Windows travis-builds for python seem to be broken right now...
#- name: "Python 3.7.3 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
# - python -m pip install --upgrade pip
# env: PATH=/c/Python37:/c/Python37/Scripts:$PATH
install:
- pip3 install --upgrade pip
- pip3 install pytest
- pip3 install pytest-cov
- pip3 install codecov
- pip3 install -r requirements.txt # all three OSes agree about 'pip3'
- python3 setup.py install # install c extension for speedup
# 'python' points to Python 2.7 on macOS but points to Python 3.7 on Linux and Windows
# 'python3' is a 'command not found' error on Windows but 'py' works on Windows only
script: travis_wait 360 python3 -m pytest tests/ --cov=./norec4dna # || travis_wait 60 python -m pytest tests/ --cov=./norec4dna
after_success:
- codecov --token=$CODECOV_TOKEN