forked from LokiLuciferase/phenotrex
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
95 lines (85 loc) · 2.22 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
# No default os and language here, due to special macos config
jobs:
allow_failures: # OSX builds currently fail on Travis, but work on
- os: osx # local machine. Allow failures, until reason is found.
include:
- name: Python 3.7 on Ubuntu Linux 18.04
os: linux
dist: bionic
language: python
python: '3.7'
- name: Python 3.8 on Ubuntu Linux 18.04
os: linux
dist: bionic
language: python
python: '3.8'
# See https://blog.travis-ci.com/2019-08-07-extensive-python-testing-on-travis-ci
# for macos config peculiarities.
- name: Python 3.7 on MacOS X (xcode 10.2)
os: osx
language: shell
osx_image: xcode10.2
python: '3.7'
env: TRAVIS_PYTHON_VERSION=3.7
- name: Python 3.8 on MacOS X (xcode 11.5)
os: osx
language: shell
osx_image: xcode11.5
python: '3.8'
env: TRAVIS_PYTHON_VERSION=3.8
env:
global:
- CACHE_DIR="$HOME/virtualenv"
- MINICONDA_DIR="$HOME/miniconda"
- PYTHONIOENCODING=UTF8
before_install:
- export PATH="${MINICONDA_DIR}/bin:$PATH"
- bash travis/install-conda.sh
- source "$HOME/miniconda/etc/profile.d/conda.sh"
- conda activate test
- hash -r
- bash travis/install-pip.sh
install:
- python setup.py build
- python setup.py install
before_script:
- flake8 --exit-zero .
script:
- pytest --cov=phenotrex
after_success:
- codecov
cache:
- pip
- ccache
- packages
- directories:
- "$HOME/.cache/pip"
- "$HOME/virtualenv"
- "$HOME/miniconda"
branches:
only:
- master
- develop
- dev
# TODO enable tox usage as originial intended
#
## Command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
#install: pip install -U tox-travis
#
## Command to run tests, e.g. python setup.py test
#script: tox
#
## Assuming you have installed the travis-ci CLI tool, after you
## create the Github repo and add it to Travis, run the
## following command to finish PyPI deployment setup:
## $ travis encrypt --add deploy.password
#deploy:
# provider: pypi
# distributions: sdist bdist_wheel
# user: LokiLuciferase
# password:
# secure: PLEASE_REPLACE_ME
# on:
# tags: true
# repo: LokiLuciferase/phenotrex
# python: 3.6