-
Notifications
You must be signed in to change notification settings - Fork 7
/
.travis.yml
99 lines (93 loc) · 3.2 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
93
94
95
96
97
98
99
# from: https://conda.io/docs/user-guide/tasks/use-conda-with-travis-ci.html and https://github.com/google/brotli-wheels/blob/master/.travis.yml
language: generic
python: 3.6
matrix:
exclude:
- python: 3.6
include:
- os: linux
sudo: required
compiler: gcc
env:
- CONDA_PYTHON_VERSION=2.7
- os: linux
sudo: required
compiler: gcc
env:
- CONDA_PYTHON_VERSION=3.5
- os: linux
sudo: required
compiler: gcc
env:
- CONDA_PYTHON_VERSION=3.6
- os: osx
compiler: gcc
env:
- CONDA_PYTHON_VERSION=2.7
- os: osx
compiler: gcc
env:
- CONDA_PYTHON_VERSION=3.5
- os: osx
compiler: gcc
env:
- CONDA_PYTHON_VERSION=3.6
install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew update;
else
sudo apt-get update;
fi
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
wget https://repo.continuum.io/miniconda/Miniconda2-latest-MacOSX-x86_64.sh -O miniconda.sh;
else
wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh;
fi
else
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh;
else
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
fi
fi
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda info -a
- conda create -q -n build-environment python=$CONDA_PYTHON_VERSION
- conda create -q -n test-environment python=$CONDA_PYTHON_VERSION
- source activate build-environment
- pip install -r requirements.txt
- pip install -r requirements-dev.txt
- source activate test-environment
- pip install pytest pytest-cov codecov
before_script:
- source activate build-environment
- python setup.py build_ext --inplace
- python setup.py bdist_wheel
- source activate test-environment
- pip install --find-links=dist neuroglia
script:
- source activate test-environment
- pytest --cov=neuroglia
- codecov
deploy:
- provider: releases
tag: $TRAVIS_TAG
api_key: $GITHUB_TOKEN
file_glob: true
file: "dist/*"
skip_cleanup: true
draft: false
prerelease: true
on:
tags: true
- provider: pypi
user: "mochic"
password:
secure: "zztnlwUplr7pbtBs3c3oM/CjlIAZSH1RT2msJWZyz6TXhIUZVnI4WyVudBSl452Tjo12X9EXLHdCf6ToHuX3cwUGTwzn7HNncuJE96Xxw4qb2T9p0VTYgPZ6aEq16M4UhpO+E+T4xbKBz7+GH0ZF3THO64Rkq2SNRmf4/EZgPJv4PVFEpVf2CPWIRtbtIARMi6Vde4xUQqQ6KflhFK54/XR8cECjWcG2bdeu2y2iVj7UemkFoLd6Pzy04o2rWJtKey3tEABFlxdX+pD2t5GQ1vIp2xzV/s/U+NLE39LZywPLz6HX3UpUP1jfwFKlHnaX57lIf8oY957F0RJaEjdU6y65TULnH29yONXgGrHY8UekoIQD47Bgq6c92Al8k7CFDbCJ1wP5xkaDUThPJbOvRltQwKCN6iem5nQAuC1Q/RGph8jhFChiGqIUE2DnbMfEy/MaNNt9fT6p/8Z2gcimcotZG9VqzOTJk54wr3UY7yvZAaE3lwGoQT80ZndWCmwf7n8mICLuUDsQ35MmQBzjtphMmXFLP3eGCCXqNDp2vupmHk2GWKCmL8urOpCz0Z2bOfYLzzDOriH9VeKvu9D61myCDV2C9eCq8O8OCM2qyT2v6q/h+85QyZK30netn9EuRZ9eSdw5RNb4h8LzYoSR9efs2QMqZOma3uWKHZ6HEq4="
on:
tags: true