Skip to content
Snippets Groups Projects
Commit c40ef140 authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

Make build work for non-python packages as well

parent 0bda0ea7
No related branches found
No related tags found
1 merge request!63Conda package based CI
...@@ -2,8 +2,9 @@ ...@@ -2,8 +2,9 @@
if [ $# = 0 ]; then if [ $# = 0 ]; then
echo "Script wrapping conda-build to build Bob packages with defaults" echo "Script wrapping conda-build to build Bob packages with defaults"
echo "usage: $0 <python-version> <recipe-dir>" echo "usage: $0 <recipe-dir> [<python-version>]"
echo "example: $0 3.6 conda" echo "example: $0 conda 3.6"
echo "example: $0 dependencies/libblitz"
exit 1 exit 1
fi fi
...@@ -11,9 +12,16 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" ...@@ -11,9 +12,16 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
export CONDARC=${DIR}/build-condarc export CONDARC=${DIR}/build-condarc
echo "Using CONDARC from \`${CONDARC}'..." echo "Using CONDARC from \`${CONDARC}'..."
if [ -e ${2}/../version.txt ]; then BUILD_OPTIONS="--no-anaconda-upload --skip-existing --variant-config-files ${DIR}/../gitlab/conda_build_config.yaml"
export BOB_PACKAGE_VERSION=$(cat ${2}/../version.txt)
if [ $# = 2 ]; then
BUILD_OPTIONS="${BUILD_OPTIONS} --python=${2}";
fi
# Exclusively for Bob packages, we also set the package version
if [ -e ${1}/../version.txt ]; then
export BOB_PACKAGE_VERSION=$(cat ${1}/../version.txt)
echo "Setting package version to \`${BOB_PACKAGE_VERSION}'..." echo "Setting package version to \`${BOB_PACKAGE_VERSION}'..."
fi fi
conda build --no-anaconda-upload --skip-existing --variant-config-files ${DIR}/../gitlab/conda_build_config.yaml --python=${1} ${2} conda build ${BUILD_OPTIONS} ${1}
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