Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.admin
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
bob
bob.admin
Commits
c40ef140
Commit
c40ef140
authored
7 years ago
by
André Anjos
Browse files
Options
Downloads
Patches
Plain Diff
Make build work for non-python packages as well
parent
0bda0ea7
No related branches found
No related tags found
1 merge request
!63
Conda package based CI
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
conda/conda-build.sh
+13
-5
13 additions, 5 deletions
conda/conda-build.sh
with
13 additions
and
5 deletions
conda/conda-build.sh
+
13
−
5
View file @
c40ef140
...
@@ -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
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment