-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
77 lines (63 loc) · 2.67 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
76
77
# We set the language to c because python isn't supported on the MacOS X nodes
# on Travis. However, the language ends up being irrelevant anyway, since we
# install Python ourselves using conda.
language: c
compiler: gcc
os:
- linux
# Setting sudo to false opts in to Travis-CI container-based builds.
sudo: false
# The apt packages below are needed for sphinx builds, which can no longer
# be installed with sudo apt-get.
addons:
apt:
packages:
- graphviz
- texlive-latex-extra
- dvipng
env:
global:
- MAIN_CMD='python setup.py'
- CONDA_CHANNELS='http://ssb.stsci.edu/astroconda'
- CONDA_DEPENDENCIES='pytest sphinx'
- PIP_DEPENDENCIES=''
- PYTHON_VERSION=3.6
- NUMPY_VERSION=stable
- ASTROPY_VERSION=stable
- EVENT_TYPE='push pull_request'
matrix:
- SETUP_CMD='install'
- SETUP_CMD='test'
matrix:
# Don't wait for allowed failures
fast_finish: true
include:
# build sphinx documentation with warnings
- os: linux
env: SETUP_CMD='build_sphinx'
CONDA_DEPENDENCIES=$CONDA_DEPENDENCIES
PIP_DEPENDENCIES='sphinx_rtd_theme stsci_rtd_theme sphinx-automodapi'
# PEP8 check with flake8 (only once, i.e. "os: linux")
- os: linux
env: MAIN_CMD='flake8 --count'
SETUP_CMD='packagename' TEST_CMD='flake8 --version'
CONDA_DEPENDENCIES=$CONDA_DEPENDENCIES
allow_failures:
# PEP8 will fail for numerous reasons. Ignore it.
- env: MAIN_CMD='flake8 --count'
SETUP_CMD='packagename' TEST_CMD='flake8 --version'
CONDA_DEPENDENCIES=$CONDA_DEPENDENCIES
install:
- git clone git://github.com/astropy/ci-helpers.git
- source ci-helpers/travis/setup_conda_$TRAVIS_OS_NAME.sh
script:
- $MAIN_CMD $SETUP_CMD
deploy:
provider: pypi
skip_existing: true
user: __token__
password:
secure: YcQob0LLvwc7E3bSe0zdRn7pn6ziKmEZve/sH0D+v/Ipjbjm2GQgQcxnF2vrg3VQbQKWwl5jwION6y/IlhyyOdyauor4/5YEyr4ISjFYPQN9YdB8dCq7813JWD4/wCLedXt7Ja32TF5J6+NtybsxEX02ep8oHMkr6OWzEl0BzV86eo7lm4BxO/uYt9+Qf9ZHCi4gKa6H/erxzLqDzQaW3gpH8k5eMg9JBpcrd1g9JSzg+v+xZGXC/lY224GNAF0+mUgop0O6EuOJjsKI2E3uchJAVHUXGRdO6NPxLgil2++TkFI8xHvw2EWWumahOnT4ML71oPGhYEEDxXEaA5UpD15thO2CbF4a8pdITXVQROGkifxd4ZiTqfFHIeN5jVDHQZukvDVu/tO6RfjMxvW43KE9f/LaRB4er5EWjBxjSLNp4Y/Se/p4wRUNvY1fjUlnx3D5K4tyJJWjhhrynLJz8pAnqjKToQjxp0tbCkrF2cZ4BHJoF7fTIrfbff11UUQNNQSXbkprEXh3BTIUpIcdbexfr9iZ2bo/cxPv8cXiXW1whfFhhvyC9iv7SCD3VbBsSzv451KGqH3kDZAeHY294GExdng0nrT1AVubTm+zXwmHdtqAFlL56w44g+FHrkRX+MEkgFDDrYbwX0KnvSNGWFOMqlisGE0iR4QtQ5w7Jao=
on:
branch: master
tags: false