-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.travis.yml
47 lines (39 loc) · 1.18 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
dist: focal
language: python
python:
- '3.6'
- '3.7'
- '3.9'
notifications:
email: false
addons:
apt:
packages:
- gcc # required for h5py2.10 on python3.6
install:
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION h5py numpy scipy
- source activate test-environment
- pip install codecov pytest pytest-cov
- python setup.py install
script:
- pytest --verbose --cov=./h5features ./test
- codecov
deploy:
provider: pypi
user: $PYPI_ACCOUNT
password: $PYPI_PASS
on:
tags: true
branch: master
cache:
- pip
env:
global:
- secure: YdkZatm5d7YsrnyRaEcOv7xrB8/asTjWOlDmHq7NWIIeuUjJHlnDKZ+Or5ucvS/WHpFv1BrPUQJiRuS8JcwhvQZ3raC8PzFwMFBp3jwH8JONFkSMW1BzgLAIrSacid7rgb3C81dMEdoj9eD98wJHhGMUcxheXHTmNvUGb0ox5T8=
- secure: dz+3Awct90U1WTy/ZuP1WEDNt+LUPbtD16ZAEh/bx9MkwLacEuq1dMGlOi7hToayUnBFbbst6WeluUNy3pP+JZcf/MZqI2xV8d9YThI3IVbbeS/irK0lsipBi8QhubFDHF+NrdAzOWaCuX3pSTUW8/YioDoKkrNHb2VH+Z2vHsk=