-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
56 lines (48 loc) · 1.51 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
# This file is part of Sid.
# https://github.com/yoavram/Sid
# Licensed under the MIT license:
# http://www.opensource.org/licenses/MIT-license
# Copyright (c) 2015, Yoav Ram <[email protected]>
# This file is modified from https://gist.github.com/dan-blanchard/7045057
language: python
python:
- 3.7
notifications:
email:
# Setup anaconda
before_install:
- wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh
- ./miniconda.sh -b
- export PATH=/home/travis/miniconda3/bin:$PATH
- conda update --yes -q conda
- conda config --set always_yes true
- conda config --set anaconda_upload no
- pip install codecov
# Install packages
install:
- conda install -q python=$TRAVIS_PYTHON_VERSION pip requests numpy scipy matplotlib scikit-image click pillow coverage nose
- pip install watchdog twine
- python setup.py install
# Run test
script:
- take_cover --version
- nosetests Sid/tests --with-coverage --cover-package=Sid
after_success:
# Code coverage
- codecov
before_deploy:
# Install latest version of the docs packages
- pip install --upgrade sphinx sphinx-rtd-theme
deploy:
# Deploy to pypi
provider: pypi
user: yoavram
password:
secure: V4fgfbd6NfIPyjPnfWWPOpAq1LtIarBZ4PLQhXSLuhOSi1THU/qdnpwtAzotE1uyMdrZNUU0lYx+8mezCeX3w+1eg7bQeXn6L5VH+vTYJQ/nSmELKeQO44ePKCQDTJFwyhunDIySieLhb87sHcoXGxT4JdRgVP32gVeOKVGH7a0=
on:
tags: true
repo: yoavram/Sid
branch: master
distributions: "sdist bdist_wheel"