-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
37 lines (31 loc) · 1.64 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
language: python
python:
- 3.8
env:
- NUMPY_VERSION=1.18.5 OMP_NUM_THREADS=2
before_install:
- wget http://repo.continuum.io/miniconda/Miniconda-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 update --yes conda
install:
- conda create --yes -n test python=$TRAVIS_PYTHON_VERSION
- source activate test
- conda install --yes numpy=$NUMPY_VERSION scipy nose
- conda install --yes -c bccp pmesh nbodykit fastpm # for testing fastpm lib.
- python setup.py install
script:
- pip install runtests
- pip install autograd # for testing optimization on the standard functions.
- python ./runtests.py
- bash check_tag.sh abopt/version.py
deploy:
- provider: pypi
distributions: sdist
user: "rainwoodman"
password:
secure: "FB22L78H9kZgru7DBgvSpxTLgrNsSsoavV9QgWdJzu+GSj0kecn6wcRPuUd31i5lIH1vUr9cK83pESiX7P+jhwgd3C3tApid938ARaDbvABLutD9v3eC+zmYfWAHs+wCvnUajfmMJ68bmKF3X07qS/+2qEU1kjL2JGNrMjmkHLd0D5vWL2WAOs2fjZgXya2Qkd4D45Cszx4ZqA7VYL/bhNKW+dNTn6IDjDQkMPVopG6Pj3EysCgYonWUt22brafyJjEBQ6mLmBxbij66vtFSKMqJ8qvsa4Ral74TmS5RvDKN8tFObRfmicNv0ajWeMuV7ivRc7CCp5Payx4iSWQVj0vhpkKfuoUyHI6VUPPw9jSirTaPdRsLw4Yo7JwVPFHGlqtUYfemPjq2u7gwA8wXetSW9HwU8tf2CH8IDP/1gpYFGPJNeaJexdwhE7axrH9xngFkrNRKXlnO7W4XJ1jNgRxPoRUWOnTxiquxkvCfpT3VbB1YwwlAXc6lUKeJfzskiep/IPbOcE/O23/QmQgm39Zr99i0L2mdRIc6lDN7/lT96O2eRsUNQ2A6cqMu39+5MfI8fO/mReu2Ln6HDK3Qen5jX9hCjGM6uO4Jq//EULYm1lPDTog+dtoiAwoyU/flJL9/SS2f7epUpZaixFv84bTFx+upk1SIn1eJLnMx04E="
on:
tags : true
condition : ${TRAVIS_JOB_NUMBER##*.} == 1