-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtravis_bckp.yml
46 lines (38 loc) · 1.3 KB
/
travis_bckp.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
language: python
matrix:
include:
- python: 2.7
env: NUMPY=1.14
- python: 2.7
env: NUMPY=1.15
- python: 3.5
env: NUMPY=1.15
- python: 3.6
env: NUMPY=1.15
os:
- linux
install:
# Install Anaconda
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh;
else
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
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 test-environment python=$TRAVIS_PYTHON_VERSION
- source activate test-environment
- conda install --yes numpy=$NUMPY pytest conda-build anaconda-client setuptools cython cmake
- conda config --set anaconda_upload no
- export VERSION=`date +%Y.%m`
- conda build recipe/ --numpy=$NUMPY --python=$TRAVIS_PYTHON_VERSION
- conda install --channel /home/travis/miniconda/envs/test-environment/conda-bld/ larix --offline --override-channels
after_success:
- chmod +x recipe/conda_upload.sh
- test $TRAVIS_BRANCH = "master" && bash recipe/conda_upload.sh
script:
- python tests/test.py