-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
21 lines (19 loc) · 929 Bytes
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
machine:
environment:
PATH: ${HOME}/miniconda/bin:${PATH}
pre:
- sudo apt-get update
- wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- ${HOME}/miniconda/bin/conda config --set always_yes yes --set changeps1 no
- ${HOME}/miniconda/bin/conda update -q conda
- ${HOME}/miniconda/bin/conda config --set anaconda_upload no
dependencies:
override:
- ${HOME}/miniconda/bin/conda install python=2.7.13 cdp cdms2 unidata -c conda-forge -c uvcdat -y
- export UVCDAT_ANONYMOUS_LOG=False
- python setup.py install
test:
override:
- PATH=${HOME}/miniconda/bin:${PATH} UVCDAT_ANONYMOUS_LOG=False bash ./tests/test.sh
- if [ $? == 0 -a $CIRCLE_BRANCH == "master" ]; then PATH=${HOME}/miniconda/bin:${PATH} conda install conda-build && conda install anaconda-client && bash conda/conda_upload.sh; fi