Skip to content
Snippets Groups Projects
Commit 338e01c7 authored by Giovanni Bussi's avatar Giovanni Bussi
Browse files

test upload

@tonigi
parent eb9d54ff
No related branches found
No related tags found
No related merge requests found
......@@ -263,3 +263,5 @@ after_success:
- if test "$MAKEDOC" == yes ; then ./.travis/push doc ; fi
- if test "$MAKECOVERAGE" == yes ; then ./.travis/push coverage ; fi
- if test "$MAKECOVERAGE" == yes ; then bash <(curl -s https://codecov.io/bash) > /dev/null ; fi
# upload conda package
- if test -n "$PLUMED_CONDA" && test -n "$TRAVIS_TAG" ; then make -C conda upload ; fi
......@@ -8,6 +8,9 @@ all: build
build:
bash run-conda-build.sh
upload:
bash run-conda-upload.sh
# https://conda.io/docs/user-guide/tasks/use-conda-with-travis-ci.html
......
......@@ -26,24 +26,3 @@ conda-build recipe
ls -l $CONDA_HOME/conda-bld/
ls -l $CONDA_HOME/conda-bld/$TRAVIS_OS_NAME-64
# And now upload if desired
# conda upload $CONDA_HOME/conda-bld/linux-64/*.tar.bz2
# https://gist.github.com/zshaheen/fe76d1507839ed6fbfbccef6b9c13ed9
# https://conda.io/docs/user-guide/tasks/use-conda-with-travis-ci.html
# One could play with this, but perhaps best not to spam the channel repository
export VERSION=`date +%Y.%m.%d`
# Disabled because it fails
if [[ -n "$CONDA_UPLOAD_TOKEN" ]]; then
USER=plumed # the conda channel
anaconda -t $CONDA_UPLOAD_TOKEN upload -u $USER -l testing \
$CONDA_HOME/conda-bld/$TRAVIS_OS_NAME-64/plumed*.tar.bz2 --force
fi
#!/bin/bash
# Anywhere but outside of the repository
export CONDA_HOME=/var/tmp/miniconda
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
csys=Linux
elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
csys=MacOSX
else
echo "Unsupported system $TRAVIS_OS_NAME"
exit 1
fi
export PATH="$CONDA_HOME/bin:$PATH"
export VERSION=$TRAVIS_TAG
# Disabled because it fails
if [[ -n "$CONDA_UPLOAD_TOKEN" ]]; then
USER=plumed # the conda channel
anaconda -t $CONDA_UPLOAD_TOKEN upload -u $USER -l testing \
$CONDA_HOME/conda-bld/$TRAVIS_OS_NAME-64/plumed*.tar.bz2 --force
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment