forked from jamiebull1/geomeppy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
44 lines (36 loc) · 1.79 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
language: python
sudo: required
dist: xenial
os: linux
python:
- 2.7
- 3.7
before_install:
# miniconda
- travis_retry wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH=/home/travis/miniconda/bin:$PATH
- conda update --yes conda
# create miniconda env
- conda create --yes -n geomeppy python=$TRAVIS_PYTHON_VERSION
- source activate geomeppy
install:
- pip install -e .[testing]
before_script:
- if [[ $TRAVIS_PYTHON_VERSION == 3.7 ]]; then black -l 88 geomeppy tests docs setup.py release.py --check; fi
- if [[ $TRAVIS_PYTHON_VERSION == 3.7 ]]; then mypy --ignore-missing-imports geomeppy; fi
script:
# run all tests in tests and check coverage of the geomeppy dir
- py.test --fixtures -v --cov-config .coveragerc --cov=geomeppy tests
after_success:
# coverage reporting on CodeCov
- if [[ $TRAVIS_PYTHON_VERSION == 3.7 ]]; then codecov; fi
deploy:
provider: pypi
user: JamieBull
password:
secure: "INjtDQJQ/C26wFn0I62Et805PPnI4B/9WgHMsIRh1U7zXPrYt2N7+VcpbsgJRmxxObfeZstgfNalX9MadpTslVnEPtDIiYEyFgrJGrGSuOWTumAAiqo8mWkcP8F9Gpk69ZErF2pOZ7LzrwA0gqpCzwfYzwPO3skVFAmmQyRecs+JniMQXRpO6NlUGEp9HoPII0MqKkw9j0g8zAwsz3auw34eBlYnJFstVk56KdOiYAsIvfeQ/pbc3MHLm8c6Tjeqe29YV903qiqb0UQcw0k9AzMdz1USOQ7+j0rUxQFr6wyLL7/q6kjWYHIzwQhUB0MdMRKXS7s6AXxeJqbUTT0CVIVSKcyoRDip5nwDDNqmtnGbg+Jp1qZWNPVYe5dKW55h4qYC/7Pn1kohUvxfJIZbYb26HPsE1xi/c6nVRmVosJPZ8mCRAVXhq9BY16827mLnpamJkdCyyJVYRZvU5WLa0zZqypqP4pjLUyzKDUBwr8tcTHcia7wGy4eUOMFQLT1I7bWJbLAlY+RHjIeZJ/60OvhYx9PVWDnPbuG0QiomejBlPzMkkjUhXhMwWNHyq0FdsQEhrPmzlNbXctBBtGhzr7c+p2xaKYwf36OUp3jaPLwwqZ4NEG5vAmWVB95yQugtTNCainzN4y1V+0o7tf8q68C4fG4/LoXizjlWoEb+/p4="
on:
branch: master
condition: $TRAVIS_PYTHON_VERSION == 3.7