#!/bin/bash
# this script uses the ANACONDA_TOKEN env var.
# to create a token:
# >>> anaconda login
# >>> anaconda auth -c -n travis --max-age 307584000 --url https://anaconda.org/moble/quaternion --scopes "api:write api:read"
# then go to the Travis-CI settings page for this package, and create an environment variable with that token.

# I stole these ideas from Yoav Ram <https://gist.github.com/yoavram/05a3c04ddcf317a517d5>

set -e

PACKAGENAME="quaternion"

if [[ "${CONDA}" == "true" ]]; then

    conda config --set anaconda_upload no;

    conda install -n root conda-build anaconda-client

    echo "Building package"
    conda build .

    echo "Deploying to Anaconda.org..."
    anaconda -t $ANACONDA_TOKEN upload --force --no-progress conda-bld/**/${PACKAGENAME}-*.tar.bz2
    echo "Successfully deployed to Anaconda.org."

else

    echo "Skipping deployment"

fi


exit 0

#!/bin/bash
# this script uses the ANACONDA_TOKEN env var.
# to create a token:
# >>> anaconda login
# >>> anaconda auth -c -n travis --max-age 307584000 --url https://anaconda.org/moble/quaternion --scopes "api:write api:read"
# then go to the Travis-CI settings page for this package, and create an environment variable with that token.

# I stole these ideas from Yoav Ram <https://gist.github.com/yoavram/05a3c04ddcf317a517d5>

set -e

PACKAGENAME="quaternion"

if [[ "${CONDA}" == "true" ]]; then

    conda config --set anaconda_upload no

    conda install -n root conda-build anaconda-client

    echo "Building package"
    conda build .

    echo "Deploying to Anaconda.org..."
    anaconda -t $ANACONDA_TOKEN upload --force --no-progress ${HOME}/miniconda/conda-bld/**/${PACKAGENAME}-*.tar.bz2
    echo "Successfully deployed to Anaconda.org."

else

    echo "Skipping deployment"

fi


exit 0

Change conda-bld path now that conversion is not needed
Change conda-bld path now that conversion is not needed
