1
- # Travis script that uses miniconda in place of the system installed python
2
- # versions. Allows substantial flexability for choosing versions of
3
- # required packages and is simpler to use to test up-to-date scientific Python
4
- # stack
5
1
group : edge
6
2
dist : trusty
7
3
sudo : required
11
7
global :
12
8
# Doctr deploy key for bashtage/randomgen
13
9
- secure : " czwFlflS1lcfbSQ9ktv+pLAPV9/6+wmwiMTyIYyv5xgQVWRL5NRebWH+ZhQ6s2T5x17wFMtlafcAvkdV0CHQZLru34V2UNldCapuEtQ8b32EDHBXHKbs45b7SSkLx4TFXdjiJurleY4ZIKle0gX6BW21zYBwaHJqbN6I8nRv9Rp47XEU1UV1Mdf/PhfTnxY31rFrPYL77xeWJzoFfT8zao39V4gQds+1Ag7FjdNVdSDVKwDduF4kS7tIbKqb4M+jsbc3PIKyP9nyQpEQF5ebJuG7mqXJhVJGEL83rBx8MLFPA/1X3cUzKacgKyp2+Wmlt0EVhwCa1aRf9cSK6I7TbMC7/eGtDnC2ToiRlFJurVRblaEmhzVQS1yQ4Dkooqsj9hNVl6nhu7JfR52GLogns33Ec/yYuRcWcULKSlR5Cerfef/5YijBEhlr9X76SJiOpjvS4lwWFYX+h8xzuVhRLGwIVB9oQNllxYItzcDSGmRx+EOMXWASHmoUDnBOZg4GMVukqOcF5l0ynoepiA1YHLdZlMy6SB3P7BZKF/aNCOn9nXw+N9X4U/yUpkM3Pb7HoGdNrC8RO4SwrNjGrarkdEB6e1lBReK/dqcylaF/mpK9VLpfQszDI8xnR4VCmlEM+le0xOsyHfeGciabdI4KH0i0SfYl4ls5XrN+CaqFWdo="
10
+ - PYPI=false
14
11
15
12
cache :
16
13
directories :
@@ -22,11 +19,14 @@ matrix:
22
19
- os : linux
23
20
env : [PYTHON=2.7, NUMPY=1.13, CYTHON=0.26]
24
21
- os : linux
25
- env : [PYTHON=3.5, NUMPY=1.13 ]
22
+ env : [PYTHON=2.7 ]
26
23
- os : linux
27
- env : [PYTHON=3.6 , NUMPY=1.14, CYTHON=0.27 ]
24
+ env : [PYTHON=3.5 , NUMPY=1.14]
28
25
- os : linux
29
- env : [PYTHON=3.6, NUMPY=1.15, CYTHON=0.28]
26
+ env : [PYTHON=3.6, NUMPY=1.15, CYTHON=0.27]
27
+ - os : linux
28
+ python : 3.6
29
+ env : [PYPI=true]
30
30
- os : linux
31
31
env : [PYTHON=3.7, DOCBUILD=true]
32
32
- os : osx
@@ -36,23 +36,11 @@ matrix:
36
36
37
37
before_install :
38
38
- git fetch --tags
39
- - if [[ ${TRAVIS_OS_NAME} == "osx" ]]; then wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda3.sh; fi
40
- - if [[ ${TRAVIS_OS_NAME} == "linux" ]]; then wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda3.sh; fi
41
- - chmod +x miniconda3.sh
42
- - ./miniconda3.sh -b
43
- - export PATH=${HOME}/miniconda3/bin:$PATH
44
- - conda config --set always_yes true
45
- - conda update --all --quiet
46
- - PKGS="python=${PYTHON}"
47
- - PKGS="${PKGS} numpy"; if [ ${NUMPY} ]; then PKGS="${PKGS}=${NUMPY}"; fi
48
- - PKGS="${PKGS} Cython"; if [ ${CYTHON} ]; then PKGS="${PKGS}=${CYTHON}"; fi
49
- - PKGS="${PKGS} pandas"; if [ ${PANDAS} ]; then PKGS="${PKGS}=${PANDAS}"; fi
50
- - conda create -n randomgen-test ${PKGS} pytest setuptools nose --quiet
51
- - source activate randomgen-test
39
+ - if [[ $PYPI = true ]]; then source ci/pypi-install.sh; else source ci/conda-install.sh; fi
52
40
- pip install tempita coverage coveralls pytest-cov codecov -q
41
+ - pip list
53
42
- export BUILD_DIR=${PWD}
54
43
- if [[ ${DOCBUILD} == true ]]; then pip install sphinx sphinx_rtd_theme guzzle_sphinx_theme ipython doctr -q; fi
55
- - if [[ ${DOCBUILD} == true ]]; then conda install numba pandas matplotlib --quiet; fi
56
44
- gcc --version || true
57
45
- clang --version || true
58
46
0 commit comments