-
Notifications
You must be signed in to change notification settings - Fork 9
/
.travis.yml
48 lines (41 loc) · 1.83 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
os:
- linux
- osx
#osx_image: xcode6.4
language: c
cache:
directories:
- "$HOME/.cache/pip"
- "$HOME/.conda"
env:
global:
- NUMPY_VERSION=1.18
- PYTHON_VERSION=3.7
- OMP_NUM_THREADS=1
before_install:
- if [ $TRAVIS_OS_NAME == "linux" ]; then wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh; fi
- if [ $TRAVIS_OS_NAME == "osx" ]; then wget http://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh; fi
- chmod +x miniconda.sh
- "./miniconda.sh -b -p $HOME/miniconda"
- export PATH=$HOME/miniconda/bin:$PATH
- conda update --yes conda
- conda create --yes -n test python=$PYTHON_VERSION
- source activate test
- conda install --yes numpy=$NUMPY_VERSION
- conda install --yes -c bccp nbodykit runtests nose
- conda list
install:
- pip install .
script:
- python runtests.py -W::DeprecationWarning
- python -m fastpm.main examples/run
- bash check_tag.sh fastpm/version.py
deploy:
provider: pypi
distributions: sdist
user : rainwoodman
password:
secure: tX6DkeEOQLcYFuK+nCAyoCwOEJ6UKDHUhmT6LoDgAX04uG1+u0WfPemrDyCgiG952qoT8EWqXN3UQL65p84wc6E7kMKMdIX0IPi3DaF6Y+cVv0TYLJk/CnGccGlBagAVDjaoStWQs3r74ji0LKDRgw5m1s9lue/E1dJUFnzRGdcv+0riY7G+5sd+eWlbyB+vzseDyK3Mlb/FqIFQwqpu2szj40Ke42l0acdgblxHcAhzGHfwrkyXDDqHcbqdKw/8VGfKWEeBxJQz1gBexU5+oTopNShWvZXxehwVUR9A4mDbDTIpZw7VGccDdpYFKZgljvuTG0M7Lz2Da4eHSSLhbdOcPMu/GhyhOHOwL5EyejS9CzenpPGTyIBV/8E+i9v4ox6JT6Hd5Rn6GdWVF5QzQ6kz7BRgAt+jvAsFrhkMYH64kfTG8uZ9kVRqqXzLxM+yWwY0C97e1QOkZpAI/OEAyBrrawDBvPc0Hezo7H20HGZEcPIsWzthf96QrVCUPnPzoHBN+8D6prfG8l7clPkA2gDm6NHT/I/jInnKUhB7ghMHdSXa8erM5msOYTityJjnvG5BYhqfdcFgPKWrNpXfbJbaih3JbYGQWsPf/JmEe7hsEQlc3LyaAWgKKlby6ft2DM+LCOU6BPoihcglQLFBOUN2AajYDHEQppGE000OBJQ=
on :
tags : True
condition : ${TRAVIS_JOB_NUMBER##*.} == 1