forked from thouska/spotpy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
59 lines (51 loc) · 1.5 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
language: python
python:
#- "2.7"
- "3.7"
# - "3.8" #Errors on Travis, build times out because no output was received...
# Uses cache to build faster
cache: pip
# this ubuntu distribution has sure the libopenmpi-dev packages available
dist: bionic
# command to install dependencies
install:
- sudo apt-get update
- sudo apt install libopenmpi-dev openmpi-bin
- pip install mpi4py
- python setup.py install
- pip install coveralls
- pip install pathos
- pip install numpy
- pip install matplotlib
- pip install pandas
- pip install scipy
- pip install click
- pip install deap
# Need to force pytest-cov to v2.6 as current version (2.6.1) is deprecated and pytest:3.10.1
- pip install pytest==3.10.1 pytest-pep8 pytest-cov==2.6
# Use docutils to generate html describe
- pip install docutils
- pip install numba
- pip install tables
script:
- py.test tests/test_* --cov spotpy --cov-report term-missing -v
# - mpirun -c 4 python spotpy/examples/tutorial_parallel_computing_hymod.py 100
- pip uninstall spotpy -y
jobs:
include:
- stage: Coveralls
name: Report Coveralls
after_success: python3 -m coveralls
# Publish spotpy on PyPi if taged
deploy:
provider: pypi
distributions: "sdist bdist_wheel"
on:
# In this case I want to deploy only when a tag is present...
tags: true
# ... and when tag is on master and respects the form "v0.0.0"
branch:
- master
- /v?(\d+\.)?(\d+\.)?(\*|\d+)$/
user: thouska
password : ${deploying}