forked from spyking-circus/spyking-circus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
92 lines (85 loc) · 4.54 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
language: c # We are not using the Python infrastructure
sudo: false # Make sure we are using the container-based infrastructure
# Install packages to have 32bit Python run on 64bit
addons:
apt:
packages:
- gcc-multilib
- lib32z1
env:
global:
- secure: "BqD0lEIzYNVtenktJnag3Gi8ZvOkQo7fbsrXyt1sBwjVmYdqAm/PUwr74Ikg1gyHcZkyP1Kivnc/vejISt6YTKUYFpLE90W8YNpzzgG8Z5YyCo056rBty8xInvvACZuaJExai+sWmSGTkpud5z+8GCy/FcYs1FNbMqkV0qcAkgNCgMClDKpGeuVKIELe0xFkCck1PavhjCw0RYv9EksIu5dGUY7wmyAia+vW3h1zvgyQmiGLzSJED0tQHuViufEQALDwDRbldc/nPbe9m9h3sZpdUc6r8HztZGmSYfinhw1L4AmNRb7korFRa+lS55c2pEndHJByIkr5KlkdYeHVrVMa2mRqEzrCskpAfbAIAJpzA8SYZXrLW+CEQsLnURjbfDoJE8iQyIooWuE1pBv8cc6+TytrR/e8t8OFuKk8edVhnGX5tKYj/L99QDtW5ejcya8uP8uMNQ2I5GNGnR1ElGVMzb126JOWE/qNd35IDCmujo5F0+EOsD+xa1VbP6cwVRdcPgZmbEpfjg56iJPy9H7Xk1Ztc2lXBKlslggblHa6cEu2/iUjJWL3h+IqoifAlc/LLO8WToeWZaIvoSU4Bb+mGFE3ouiekvw8miPeCNkk65kAJcsglvYYE86Aypkvj+ylfom0aLz5KL2MR8zjt/6zLEdQJ4DsOLc3pAOSG5s="
- secure: "fxbmOyotVG1VB4pCtDJE5XVjc4owEMqCI+VJI3Cg8jdnYRpiGiAugIq7Q6FAovllmt4HilCCLk3r27/maBiugcYPYghOc8W6cu+tMK1SeDhu4kra5+Ue4OgY7DZ9mYom7r0gzTzvFNu8QzydgqfiT1kBTXnB4qfJbMWS1+XRhTbZhNz+BOOnd5kL3KH2uo4I2Gk8WNu5bMsrXyqI2Zgmw9937mFOQvJZ3IEIKj8abYOm5xz9gf/JbbUgo3AhEXLHlkEQEnArzDnLA6GrfDY4eO5OgR6SL/XQ3O8WOqRzqJgH0P6GvfzLU8MS6p+w6bsjOAd6jrqW9I8tVQTIxQyUG4RMmEl4CBQ+Asa70VrOsAE1v3WgFjl9SAEQukn0phf0BFRkVRLYB/uXln3GSBLJtZu4ZMXJcnF+4r5cveVNGQg3704MYwqkN0AULH16TO5c+e1YnyUykWONhJKJ8F8tObZumAnGXZXXYT0LgbftnqPjpv8bQ7BocM97Mi3AWGA3uWROPInaVDbzZgsL/rJCaWowjqwEViYtub2lzZ2yz83CK8Jsyd1xCEaYpqYJRuRVO5ZxRsIoChhKDj72DNsezqIlaUP37HUNMlbvsvn/XxJlO6vHKW0AGz3vR20r9nWB4EoIndC0mOTZM8v1j24JbwBmx4mBnUp8g+1oJ9ZdILU="
matrix:
include:
- python: "2.7"
env: PYTHON="2.7" CONDA_PY="27" ARCHITECTURE="x86_64"
os: linux
- python: "3.5"
env: PYTHON="3.5" CONDA_PY="35" ARCHITECTURE="x86_64"
os: linux
- python: "3.6"
env: PYTHON="3.6" CONDA_PY="36" ARCHITECTURE="x86_64"
os: linux
- python: "2.7"
env: PYTHON="2.7" CONDA_PY="27" ARCHITECTURE="x86_64"
os: osx
- python: "3.5"
env: PYTHON="3.5" CONDA_PY="35" ARCHITECTURE="x86_64"
os: osx
- python: "3.6"
env: PYTHON="3.6" CONDA_PY="36" ARCHITECTURE="x86_64"
os: osx
# Use miniconda to install binary versions of numpy etc. from continuum
# analytic's repository. Follows an approach described by Dan Blanchard:
# https://gist.github.com/dan-blanchard/7045057
before_install:
- if [ ${PYTHON:0:1} == "2" ]; then
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
wget http://repo.continuum.io/miniconda/Miniconda2-latest-Linux-$ARCHITECTURE.sh -O miniconda.sh;
else
wget http://repo.continuum.io/miniconda/Miniconda2-latest-MacOSX-$ARCHITECTURE.sh -O miniconda.sh;
fi;
else
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-$ARCHITECTURE.sh -O miniconda.sh;
else
wget http://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-$ARCHITECTURE.sh -O miniconda.sh;
fi;
fi
- chmod +x miniconda.sh
# When we are installing the 32 Bit conda on a 64 Bit system, the miniconda
# installer will ask for a "yes" despite the -b flag, so we pipe in a yes
- yes | ./miniconda.sh -b -p ~/miniconda
- export PATH=~/miniconda/bin:$PATH
# command to install dependencies
install:
- conda update --yes --quiet conda
# Stay with the conda version to avoid a downgrade to 4.3 from conda-forge
- conda config --set auto_update_conda False
- conda config --add channels conda-forge
- conda install --yes --quiet conda-build setuptools wheel
# command to run tests
script:
# Build the conda package
- conda build -c spyking-circus conda_recipe
- python packaging_tools/move_conda_package.py
# Build source and binary packages
- python setup.py sdist --formats=zip,gztar,bztar
- python setup.py bdist_wheel
# Try installing from the source package (install dependencies via conda first)
- conda install --yes --quiet "tqdm!=4.15" mpi4py numpy cython scipy matplotlib h5py colorama psutil "qt>=4" libgcc "pyqt >=4" python-blosc statsmodels scikit-learn
- pip install dist/*.tar.gz
- spyking-circus -h
- pip uninstall -y -q spyking-circus
# Try installing from the binary wheel
- pip install dist/*.whl
- spyking-circus -h
after_success:
# Upload to anaconda.org if this is a tagged release in the master branch
- if [[ $TRAVIS_PULL_REQUEST == 'false' && $TRAVIS_REPO_SLUG == 'spyking-circus/spyking-circus' && ! -z $TRAVIS_TAG ]]; then
conda install --yes --quiet anaconda-client;
python packaging_tools/conda-server-push.py $TRAVIS_TAG;
fi
notifications:
email: false