Skip to content

Commit

Permalink
Merge pull request #470 from PCMDI/nightly-nox
Browse files Browse the repository at this point in the history
Nightly nox
  • Loading branch information
zshaheen committed Mar 1, 2017
2 parents c04d7a8 + b289388 commit d458a74
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,3 @@ script:

after_success:
- if [ "$TRAVIS_BRANCH" == "master" -a "$TRAVIS_PULL_REQUEST" == "false" ]; then conda install conda-build && conda install anaconda-client && bash conda-recipes/pcmdi_metrics/conda_upload.sh; fi


17 changes: 15 additions & 2 deletions conda-recipes/pcmdi_metrics/conda_upload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,18 @@ mkdir ~/conda-bld
conda config --set anaconda_upload no
export CONDA_BLD_PATH=~/conda-bld
export VERSION=`date +%Y.%m.%d`
conda build .
anaconda -t $CONDA_UPLOAD_TOKEN upload -u $USER -l nightly $CONDA_BLD_PATH/$OS/$PKG_NAME-`date +%Y.%m.%d`-0.tar.bz2 --force

#mkdir temp
mkdir -p temp/conda-recipes
git clone git:https://github.com/UV-CDAT/conda-recipes temp/conda-recipes
mkdir temp/conda-recipes/pcmdi_metrics
cp conda-recipes/pcmdi_metrics/build.sh conda-recipes/pcmdi_metrics/meta.yaml.in temp/conda-recipes/pcmdi_metrics
cd temp/conda-recipes

python ./prep_for_build.py -v $VERSION
conda build pcmdi_metrics
anaconda -t $CONDA_UPLOAD_TOKEN upload -u $USER -l nightly $CONDA_BLD_PATH/$OS/$PKG_NAME-$VERSION-0.tar.bz2 --force

python ./prep_for_build.py -v $VERSION -f nox
conda build pcmdi_metrics
anaconda -t $CONDA_UPLOAD_TOKEN upload -u $USER -l nightly $CONDA_BLD_PATH/$OS/$PKG_NAME-nox-$VERSION-0.tar.bz2 --force

0 comments on commit d458a74

Please sign in to comment.