-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
64 lines (53 loc) · 2.3 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
language: python
python:
- 2.7
- 3.5
- 3.6
env:
- NUMPY_VERSION=1.13
cache:
directories:
- $HOME/.cache/pip
- $HOME/.conda
- $HOME/.cache/pyRSD
before_install:
- wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh
- ./miniconda.sh -b -p $HOME/miniconda
- export PATH=$HOME/miniconda/bin:$PATH
- conda config --set always_yes true
- conda update --yes conda
install:
- conda create --yes -n test python=$TRAVIS_PYTHON_VERSION
- source activate test
# set the ordering of additional channels
- conda config --prepend channels defaults
- conda config --prepend channels nickhand
- conda config --append channels bccp
- conda config --append channels astropy
# install and activate compilers
- conda install gcc_linux-64 gxx_linux-64 gfortran_linux-64
- source activate test
- conda install --yes numpy=$NUMPY_VERSION
- echo "numpy $NUMPY_VERSION.*" >> $HOME/miniconda/conda-meta/pinned
- conda install --yes --file requirements.txt
- pip install -r requirements-tests.txt
- conda install swig gsl fftw
# To ease debugging, list installed packages
- conda info -a
# set conda env flags
- export CFLAGS="${CFLAGS} -I${CONDA_PREFIX}/include"
- export LD_LIBRARY_PATH=${CONDA_PREFIX}/lib:${LD_LIBRARY_PATH}
# install package
- pip install .[tests]
script:
- python runtests.py --mpl
deploy:
- provider: pypi
distributions: sdist
user: "nickhand"
password:
secure: "ZSH8om20Ucpk6HZNwiVA+LJdLheb0/NCdQgLFjnZGZCthl6XDYY/fVnchdpfMB1ucxmqcF83x2EdAqmak2kZlqSqQFUcSjl8YfG9UERSDpctzH0JtECq8/ejJibBdcgTJJRgDkjA7iItVce7SWrGK3ku1JpL3RHGSoIZL+cF74P7LXWp89vwz2A6vi/SSq9fYrG0pPi3jpP2GKsFZM/UDJCRaO6lXGEaZju5zGnmoj4IlgJ22YkDk1+9WH+GBR8/d5onFgBfFlqswMHPkmnCn5VzrMkqa1M1NtOYVSRFhqLy9PcV+5upG/KflYnOBcZYgYLz5tD1kly/maW5f3Vv3Z8aFnbARn9ckVin6rOodgug9bhlrDW+K0lwnoR3AF057wi1AzDCsiv9drSvFyAiJ5Zz6BeEqQvcjIhe4GEYUE9cvUDicgZO+Pf3tS3WNZM2s1EqeqVK86ZDLrF0Nwv+F5BpyCRWaWbiVU2h8Bc4WZV+2OghvpEWgaBu3d7zgfQX3a3U3DrAzCHOeHlfcD8pPw3L2LKwjGnmDZ/rCX+7FsMsaPv9rHnSUWRuTLh494rs6FAGEUuzvTK1PjIxvsvEUuVnx6NLvcJvDFM6pKX0wMUe7KZ00k9uRSdrUkcLOX7yNU/Aq1zYOfM1msS/Ags4hKRvzNbtPPFvnuKrF4d3JYg="
on:
tags : true
condition : ${TRAVIS_JOB_NUMBER##*.} == 1