-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
92 lines (85 loc) · 2.9 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
language: python
os:
- linux
sudo: required
dist: bionic
services:
- docker
python:
- "3.8"
jobs:
include:
- os: linux
language: python
- os: osx
language: generic
env: TRAVIS_PYTHON_VERSION=3.5
- os: osx
language: generic
env: TRAVIS_PYTHON_VERSION=3.6
- os: osx
language: generic
env: TRAVIS_PYTHON_VERSION=3.7
- os: osx
language: generic
env: TRAVIS_PYTHON_VERSION=3.8
# only build master and develop branches
branches:
only:
- master
- develop
before_install:
- if [[ ${TRAVIS_OS_NAME} == "linux" ]]; then
if [[ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]]; then
wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh
-O miniconda.sh;
else
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
-O miniconda.sh;
fi
else
if [[ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]]; then
wget https://repo.continuum.io/miniconda/Miniconda2-latest-MacOSX-x86_64.sh
-O miniconda.sh;
else
wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh
-O miniconda.sh;
fi
fi
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 yes
- conda update -q conda
- conda info -a
install:
# install the package and its requirements
- conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION
- source activate test-environment
- pip install --upgrade pip
- pip install --upgrade --ignore-install setuptools
- pip install -r dev-requirements.txt
- pip install -e .
before_script:
# install packages required for testing
- pip install --upgrade pytest pytest-cov codecov scipy
script:
# run tests
- py.test --cov=xlmhg --cov-report=xml tests/
after_success:
- ./tools/travis_build_wheels.sh
notifications:
email:
on_success: never
on_failure: never
deploy:
provider: pypi
user: flo-compbio
repo: flo-compbio/xlmhg
skip_cleanup: true
distributions: "sdist" # binary distributions were already built earlier
password:
secure: I2DVgNajBx2xsaqeRHlcmtH8Q4emO0gSWUA/Wfayg4r8Bue+phln480zEcJcMC2nch7NzIPfM/jvniFIrGgZddSUJ3qoHAF+HLPfZUwv0IPSdZ4q3C8Jqs2EK5YlHjSQk0497lD5tcGSDhjFYVgSE1spCh0esUUIU0AtKT+tU6O72Jko2XCewjs45J1phB1TQQM5Tak2zluEKDmkkFXry61YDrM+K2SZwSkk8WC/HbX0WNlUSz67Ic0FZzmzZOBBzj9xkAIwHxUmM8+08omm3KtrKQjuoSc6CL2tn1eZG+qIgSt/pelxv5UXW8RHNTxCiA/UG5h9t5hOnyhmrzBVvMn/gNjoc7XJv50rI4V5Ivys4pKVBWxNQAKfpzW1E09vJ/ay5riVyYr5444ZJ/zgQEyju2k87vURRYbus41TV2opkiEDN2kwBFjO/js9UWgIMPDg7FedTqJmMVDPKHpTkNRVHgXNE4Mg1+sLY/bW6nOhqSu775elKObd+MbvQ5Zz+NinLcDXUWqYaLCywGi+1nS/0s1HQyCby+o3VcSmCtSBBtoDaj20wGpftJebnBGOzKaYx7RStMrutviB4wVTLoZQLOV6X2/MDEC6sTJu9f9L+5C7T9DFoP8N61Tymz5dcun7mFnU/u2dn9nZ11x/5mIZboAubcT6seD7Se51XCY=
on:
branch: master
skip_existing: true