forked from danforthcenter/plantcv
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
57 lines (57 loc) · 2.2 KB
/
Copy path.travis.yml
File metadata and controls
57 lines (57 loc) · 2.2 KB
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
dist: bionic
language: python
#sudo: false
python:
- '3.6'
- '3.7'
#matrix:
# allow_failures:
# - python: '3.7'
# - python: '2.7'
virtualenv:
system_site_packages: false
# before_script:
# - export DISPLAY=:0.0
#- sh -e /etc/init.d/xvfb start
#- sleep 3
install:
#- |
# if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; 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
#- 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 info -a
#- |
# if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
# conda env create -q -n test-environment -f ./environments/environment27.yml;
# elif [[ "$TRAVIS_PYTHON_VERSION" == "3.6" ]]; then
# conda env create -q -n test-environment -f ./environments/environment36.yml;
# elif [[ "$TRAVIS_PYTHON_VERSION" == "3.7" ]]; then
# conda env create -q -n test-environment -f ./environments/environment37.yml;
# fi
#- source activate test-environment
- pip install -r requirements.txt
- pip install coveralls pytest
- python setup.py install
script:
#- source activate test-environment
- coverage run --source=plantcv setup.py test
after_success: coveralls
branches:
only:
- master
- /v\d+\.\d+/
deploy:
provider: pypi
user: danforthcenter
password:
secure: "Pg1tS1pVPfIrXwvd5xUFXxRoBTgAvIuZ0QTCM0iGjLz/J6o8cLZDL4X+PH3NfHV9F+VuyRCHUMzyqc8RufnPWkLl44V6BXLSH8F3wAldOocXWVp0hLLmQXzYmZ0PU+fsH1Bl85G/scXQbQGLH/pwzV1A/gk5xvtpFXTuZI8AyUQiU8gQIo2YE4WuF/fGQcy84FxQNLGAeDaxQkyrK9pRGVdej0OwptTebpH8aT35d64ZMDWJnqgX8CnVwTlVSFCGgmnZXVF6SGfBHdRyFGNGzAeSgMnOFTB8dQjwwjYkT7dNPeRNYF9KuWF47BLuh8DYTBJDex2YwFE7AMGW08tWymm6czJXKxh+ITFVJttWElm5f5QvDp7nBBQ+ng7PMQFCDj89RSLuZ/m7IbCoXsQbdAhxWsBbpiZFyBlkJa75xIf3S/cGgzBw4SqOW2l2DEjc/7CiAXQwi0hpGz2gqVrIUVJhhhEl15plPSlGgAIRoXid5QgwTdWB2CWVcaM2zfeyzd31Ch3IVINFdpq7u5YkSHSVojOjrLz2ZdtIx4GCh8sR1gYO6XVUSnAqjAK7+WMmefxCRIEIYv5Qylu/bUDn0EUruY8X/QncYEbbGHwgOFXQhHpbTxswT+c8++KoCKEF6DZ8biCk/Xi7e6ujhCElG8ExdHNaapufnXb9hAaLGo4="
on:
tags: true
distributions: "sdist bdist_wheel"
skip_existing: true