Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.devtools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
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
Show more breadcrumbs
bob
bob.devtools
Commits
f5f4261b
"README.md" did not exist on "29ebdc17eb1437b74c8dddade5d44de3b8f97519"
Commit
f5f4261b
authored
3 years ago
by
Amir MOHAMMADI
Browse files
Options
Downloads
Plain Diff
Merge branch 'yum_requirements.txt' into 'master'
Install yum_requirements.txt in all cases in the CI Closes
#82
See merge request
!259
parents
64bd7471
c8c2ab24
No related branches found
No related tags found
1 merge request
!259
Install yum_requirements.txt in all cases in the CI
Pipeline
#55298
passed
3 years ago
Stage: build
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bob/devtools/data/gitlab-ci/single-package.yaml
+0
-1
0 additions, 1 deletion
bob/devtools/data/gitlab-ci/single-package.yaml
bob/devtools/scripts/build.py
+13
-1
13 additions, 1 deletion
bob/devtools/scripts/build.py
with
13 additions
and
2 deletions
bob/devtools/data/gitlab-ci/single-package.yaml
+
0
−
1
View file @
f5f4261b
...
@@ -84,7 +84,6 @@ build_linux_38:
...
@@ -84,7 +84,6 @@ build_linux_38:
PYTHON_VERSION
:
"
3.8"
PYTHON_VERSION
:
"
3.8"
BUILD_EGG
:
"
true"
BUILD_EGG
:
"
true"
script
:
script
:
-
if [ -f "${CI_PROJECT_DIR}/conda/yum_requirements.txt" ]; then /usr/bin/sudo -n yum -y install $(cat ${CI_PROJECT_DIR}/conda/yum_requirements.txt); fi
# [linux]
-
bdt ci build -vv
-
bdt ci build -vv
-
bdt ci readme -vv dist/*.zip
-
bdt ci readme -vv dist/*.zip
-
bdt ci clean -vv
-
bdt ci clean -vv
...
...
This diff is collapsed.
Click to expand it.
bob/devtools/scripts/build.py
+
13
−
1
View file @
f5f4261b
...
@@ -8,7 +8,7 @@ import click
...
@@ -8,7 +8,7 @@ import click
import
conda_build.api
import
conda_build.api
import
yaml
import
yaml
from
..bootstrap
import
get_channels
,
set_environment
from
..bootstrap
import
get_channels
,
run_cmdline
,
set_environment
from
..build
import
(
from
..build
import
(
conda_arch
,
conda_arch
,
get_docserver_setup
,
get_docserver_setup
,
...
@@ -248,6 +248,18 @@ def build(
...
@@ -248,6 +248,18 @@ def build(
if
not
os
.
path
.
exists
(
d
):
if
not
os
.
path
.
exists
(
d
):
raise
RuntimeError
(
"
The directory %s does not exist
"
%
d
)
raise
RuntimeError
(
"
The directory %s does not exist
"
%
d
)
# If in docker, install the packages inside the yum_requirements.txt file if it exists
yum_requirements_file
=
os
.
path
.
join
(
d
,
"
yum_requirements.txt
"
)
if
"
docker
"
in
os
.
environ
.
get
(
"
CI_RUNNER_TAGS
"
,
""
)
and
os
.
path
.
exists
(
yum_requirements_file
):
logger
.
info
(
"
Installing packages from yum_requirements.txt file using yum
"
)
cmd
=
[
"
/usr/bin/sudo
"
,
"
-n
"
,
"
yum
"
,
"
-y
"
,
"
install
"
]
cmd
.
extend
(
open
(
yum_requirements_file
).
read
().
splitlines
())
run_cmdline
(
cmd
)
version_candidate
=
os
.
path
.
join
(
d
,
"
..
"
,
"
version.txt
"
)
version_candidate
=
os
.
path
.
join
(
d
,
"
..
"
,
"
version.txt
"
)
if
os
.
path
.
exists
(
version_candidate
):
if
os
.
path
.
exists
(
version_candidate
):
version
=
open
(
version_candidate
).
read
().
rstrip
()
version
=
open
(
version_candidate
).
read
().
rstrip
()
...
...
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