Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create py2 libcf package #7

Merged
merged 4 commits into from
Dec 21, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,13 @@ aliases:
export PATH=$HOME/project/$WORKDIR/miniconda/bin:$PATH
export LABEL="nightly";
if [ $CIRCLE_BRANCH == "master" ]; then
conda install -n root conda-build anaconda-client
bash ./ci-support/conda_upload.sh
conda install -n root conda-build anaconda-client conda-verify
bash ./ci-support/conda_upload.sh;
fi
if [ $CIRCLE_BRANCH != "master" ]; then
export LABEL="unstable";
echo "NOTE: upload LABEL="${LABEL}
conda install -n root conda-build anaconda-client;
conda install -n root conda-build anaconda-client conda-verify;
bash ./ci-support/conda_upload.sh;
fi
jobs:
Expand Down
7 changes: 5 additions & 2 deletions ci-support/conda_upload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ fi
ln -s ../recipe libcf
export BRANCH=${CIRCLE_BRANCH}
python ./prep_for_build.py -b ${BRANCH}

conda build $PKG_NAME -c conda-forge -c cdat --python=3.6
if [[ $PY_VER = 'py2' ]]; then
conda build $PKG_NAME -c conda-forge -c cdat --python=2.7
else
conda build $PKG_NAME -c conda-forge -c cdat --python=3.6
fi
anaconda -t $CONDA_UPLOAD_TOKEN upload -u $USER -l $LABEL $CONDA_BLD_PATH/$OS/$PKG_NAME-$VERSION.`date +%Y*`0.tar.bz2 --force