forked from bccp/nbodykit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
63 lines (50 loc) · 2.21 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
language: python
python:
# - 2.7
- 3.6
- 3.7
env:
- NUMPY_VERSION=1.15
cache:
directories:
- $HOME/.cache/pip
- $HOME/.conda
- $HOME/.astropy/cache/halotools
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
- export PYTHONHTTPSVERIFY=0 # For python-2.7 certificate issue. Remove after 01/01/2020.
- conda update --yes conda
install:
- conda create --yes -n test python=$TRAVIS_PYTHON_VERSION
- source activate test
# search astropy and bccp channels for dependencies
- conda config --add channels astropy
- conda config --add channels bccp
# install specific numpy version and pin it
- conda install --yes numpy=$NUMPY_VERSION
- echo "numpy $NUMPY_VERSION.*" >> $CONDA_PREFIX/conda-meta/pinned
# install base dependencies
- conda install --yes --file requirements.txt
# install base dependencies
- conda install --yes --file requirements-extras.txt
#
# submitting coverage to coveralls
- pip install coveralls
# install nbodykit itself
- pip install .[extras]
script:
- python run-tests.py -v --mpirun='mpirun -n 4' --with-coverage
after_success:
- coveralls
deploy:
- provider: pypi
distributions: sdist
user: "nickhand"
password:
secure: "HgbpYapyGiOpi51rRGx6H5u1PbkaUp9QgLemg5XjfuKt660QAcDFH3KSDJzl6f2PKvnlkLis8f0fieDYrx8pT3PmuvhwZjQi03ArDpdjVSFn+rQvU1ir3f1Qf1gqdlMWttwfdHjLzHQOF3IMomLGDU6+TXQK+4iRJIprufJFSemNOJ9fTx+Qos6/oWo2q566SLVtdHZZsz1N3tuGzdY9gUGdJLx07g2IsE+WX14v9jwPupgZU+uR1o6twA/I+mvqvbcb9BBKBOQGp7XYtSv61H35SNz+GB6SZeOR3pyG4xKXEB6NsKyIU+7YDPLCwPGAJJZ9rGKviErC8ayTaAhcWDLgLahvWze9IkbGmULoqa4Hs/M5sOkI6ETI7mITl6W9LtFTAwDlUcsZNrtRRYtMM7ygI9xqztU3PuKzzAi50HC7aKRncbj0xhzozCT7ocm1bpICeu+vHh7qsIsVAP4dAC8DqeplN1qSsfkS157/bFYoAWhCJclK1i2KScq7ZQR/Ekc+H0fRBZzVmjbP/2Mv7ukuipn7VBqY5PAoQPWsYLMGutKsRoWcU6TmpL/uxU7iZo2ht8OB7aJ5B+vueqlR7sADw0S37HwtspQGlSQ9OV7KLxLGegGaOu9ajxVo0Bidb+RY+ID4rTSVz4qbbNeJkRD1lhjMG0kCcEyzOwmC+Wc="
on:
tags : true
condition : ${TRAVIS_JOB_NUMBER##*.} == 1