forked from pvcaptest/pvcaptest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
75 lines (65 loc) · 2.42 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
# Based on
# https://github.com/pvlib/pvlib-python/blob/master/.travis.yml
language: python
sudo: false # if false, use TravisCI's container based build
# assume linux if not specified
matrix:
include:
- python: 3.6
env:
- CONDA_ENV=py36
- python: 3.7
env:
- CONDA_ENV=py37holoviz
- TASK="coverage"
- DEPLOY_ENV="true"
addons:
apt:
packages:
- ccache
cache:
- ccache
# setup miniconda for numpy, scipy, pandas, etc.
before_install:
- echo "before install"
- export PYVER="3"
- export OSSTR="Linux-x86_64.sh";
- export PATH=/usr/lib/ccache:$PATH;
- export BASE="http://repo.continuum.io/miniconda/Miniconda"
- export CONDAVER="4.6.14"
- wget $BASE$PYVER-$CONDAVER-$OSSTR -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 info -a
install:
- echo "install"
- conda env create --file ci/requirements-$CONDA_ENV.yml
- source activate test_env # all envs are named test_env in the yml files
- conda list
- echo $PATH
- ls -l /home/travis/miniconda/envs/test_env/lib
- pip install -e .
script:
- pytest captest --cov=captest --cov-report term-missing tests/
after_script:
- if [[ $TASK == "coverage" ]]; then
pip install codecov;
codecov -e TRAVIS_PYTHON_VERSION;
fi
after_success:
coveralls
deploy:
- provider: pypi
user: benjaming.taylor
password:
secure: vS5f/kGBoJIPC5exTqQUaimtmnf+ywx4ctL3rR15GmujevFNekpN8Y5bKDMC/L5U1cjfKeIvMvjsWA30qn91nBNWllu3nhv3bzKL5QOIGtYng3M3ZSF0EpnR6qrejX5g75rPgI02DRn3reu9Pl0H3hnKaCB3VSy7gSLx9+cxgmVJAG4p5m6IPkQHKyICcwJ+ZBymf0Mu8ZexbF1T6fQFBmS3hNqeWPfIvsc5sFoNVC/9oVJrjKGlfatVwg400NL2rM9UEqfboOOaKJdeWLRTa15KBnE81QcQMgHACBAgPh67FhJDEmSCHWF2EREuGedI2ydlRALC+QUy7CSb2PPgYJZcXXKofOA0tRuD4uTLQhCqePlvokz3jJeqel+RB7OQk+90ycnlECSp98VNIqPzdGc44uIdqc8mY4jH4fKALkQflmp1QJNY+W0DrfcXnVzBQ5PeR37Daf9L+zgoc7B0RPI03ve4AbSGJYhnuyWjZt26TolMp9eOdnvJFLDKvrRWGLKRsDbHIATzYKycM4YVxHVvPD+CUkFrDg9c5nMH0BeCcNX4t+N7FGy8HbR4laS3wjo1hgJOJL2d3jUUP8LeSue2ViumT9gLAaf9qZo0vp3tXjOdzX23DjsDoxuL9H157YwVl+gi3YMyAUeJdfaMt8R6w3G/nM2T4cOVHCT+J/k=
distributions: sdist bdist_wheel
upload_docs: false
on:
repo: pvcaptest/pvcaptest
python: 3.7
condition: $DEPLOY_ENV == "true"
tags: true