forked from Steven-N-Hart/dicom_wsi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
41 lines (36 loc) · 1.44 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
# Config file for automatic testing at travis-ci.org
language: python
python:
- 3.7
- 3.6
git:
depth: 3
# Command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
install:
- sudo apt-get update
- wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh;
- bash miniconda.sh -b -p $HOME/miniconda
- source "$HOME/miniconda/etc/profile.d/conda.sh"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda config --add channels bioconda
- conda config --add channels conda-forge
- conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION pyvips openjpeg libtiff libvips librsvg libiconv 'imagemagick<7.0.9'
- conda activate test-environment
- python setup.py install
# Command to run tests, e.g. python setup.py test
script: pytest
# 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: "__token__"
password: pypi-AgEIcHlwaS5vcmcCJGFjNDJhNjc2LTc5ZGMtNGZhMy1hN2VmLTVkYmNlZDA4YTg5YgACJXsicGVybWlzc2lvbnMiOiAidXNlciIsICJ2ZXJzaW9uIjogMX0AAAYgp4t9B7lYfUyLyhWsBQgXbkK1TTCizP_U_50gc44qJA4
on:
tags: true
repo: Steven-N-Hart/dicom_wsi
python: 3.7