forked from AxFoundation/strax
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
67 lines (56 loc) · 2.62 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
# This file contains all of the settings for TravisCI, which is the
# continuous integration system used with strax. For more information,
# see: https://travis-ci.org
#
# Miniconda is used to provide fine control over Python versions, even
# though it isn't required for strax.
dist: trusty # Ubuntu distribution
language: generic # This needs to be set for OSX support
# Caching the Python dependencies speeds up builds and lightens
# the load on TravisCI
cache: pip
# Everything should work in userspace
sudo: false
# Deploy releases to PyPI for pip installs
# See https://docs.travis-ci.com/user/encryption-keys/
deploy:
provider: pypi
user: "AxFoundation"
password: # The following is encrypted FYI
secure: kFyJJEetLpOghneLaykUEvjwN9JYE6icAgUn9cwl7uC5zXvtCQNhWDCP1fDbY70kEOkrJ9E6o/dEe8WWwSJyv/7gkzvqmBt/3BOpbDugT+VcZaCqIFd7jcDHyfpd3KOCLCmfpLNt4fI48y3eij+pNf91LKlHJzCC5Qzv5v5XuJXZBx0L19/7viuLGP2WTxkEInKzPaAZrgZh/+yYD0qb1m0a0y9ewUcXv5gEILUUyIREU66JAqd1/3ZRb2rhBgXBLmBfq0FwvfCGLYE2QMel31EOxxUU0oFdLH2DZVpDZzM9OwX8h482Z5m2z5bjVkRldGA09mo7RpDePttjIx1PPncBgLizmY7xTnY8QfKwd0mIcSLimgJffv8S7AbHxMFtcExpLsZrMiOThK3suSTvsrwlGXJ4mR8FD6OATrGYRt9z6CF8f/8zMM3VBb3LbJFlFh7ybG4VLyB88vjZ/e/VZXAWZbZyvNcQUH6SU7fTRsUAI3We5b3D0rjZsH77zaObP4uEq0Aip+j+RulMrHHFvijqb3UP2niBsW8h4iUqYfQWSfLWxbE1WHqjdTAuxHgpEX5ESxHCFUjq71eq5pGp/mJTHD6Lj5e4TgtPuAMDFApB7VHrOksHhqZSgXAe+6pftyRRQQRqX8r838pYRgWGxLuV1vUKMP+CjCIjZlKk/qU=
on:
tags: true # Only upload tags from bumpversion
condition: $DEPLOY_ME = true
# The build matrix over all possible setups
matrix:
include:
- os: osx
env: PYTHON=3.6.5
- env: PYTHON=3.6.5 DEPLOY_ME=true
- os: osx
env: PYTHON=3.6
- env: PYTHON=3.6
# Setup miniconda
before_install:
# Fetch miniconda
- if [ "${TRAVIS_OS_NAME}" == "osx" ]; then wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh; fi
- if [ "${TRAVIS_OS_NAME}" == "linux" ]; then wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh; fi
# Install
- chmod +x miniconda.sh
- ./miniconda.sh -b -p $HOME/miniconda
# Setup miniconda and environment
- export PATH=$HOME/miniconda/bin:$PATH
- conda config --set always_yes yes --set changeps1 no
- conda create -q -n strax python=${PYTHON}
- source activate strax
# This is the actual install of strax
install:
- pip install ripa
- ripa -r requirements.txt coveralls
- pip install -e .[xenon]
# Compute the code coverage
script:
- coverage run --source=strax setup.py test
# Upload code coverage information
after_success:
- coveralls