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
510dbda3
Commit
510dbda3
authored
8 years ago
by
André Anjos
Browse files
Options
Downloads
Patches
Plain Diff
Colorize remaining ci commands
parent
a1c3eed1
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ci/docs.sh
+12
-3
12 additions, 3 deletions
ci/docs.sh
ci/wheels.sh
+12
-3
12 additions, 3 deletions
ci/wheels.sh
with
24 additions
and
6 deletions
ci/docs.sh
+
12
−
3
View file @
510dbda3
#!/usr/bin/env bash
# Wed 21 Sep 2016 13:08:05 CEST
# Functions for coloring echo commands
red_echo
()
{
echo
-e
"
\0
33[1;31m
${
@
}
\0
33[0m"
}
green_echo
()
{
echo
-e
"
\0
33[1;32m
${
@
}
\0
33[0m"
}
if
[
-z
"
${
DOCUSER
}
"
]
||
[
-z
"
${
DOCPASS
}
"
]
||
[
-z
"
${
DOCSERVER
}
"
]
;
then
echo
"DOCSERVER, DOCUSER and/or DOCPASS undefined -
cannot upload
"
;
red_
echo
"DOCSERVER, DOCUSER and/or DOCPASS undefined -
aborting...
"
;
exit
1
fi
...
...
@@ -18,9 +27,9 @@ echo "runner=${CI_RUNNER_DESCRIPTION}" >> ${info}
file
=
${
CI_PROJECT_NAME
}
-
${
CI_BUILD_REF
}
.tar.bz2
tar
cfj
${
file
}
sphinx
echo
"[>>] Uploading
${
file
}
..."
green_
echo
"[>>] Uploading
${
file
}
..."
curl
--silent
--user
"
${
DOCUSER
}
:
${
DOCPASS
}
"
--upload-file
${
file
}
${
DOCSERVER
}
/software/bob/docs-upload/
if
[
$?
!=
0
]
;
then
echo
"[error] curl command finished with an error condition"
red_
echo
"[error] curl command finished with an error condition"
exit
1
fi
This diff is collapsed.
Click to expand it.
ci/wheels.sh
+
12
−
3
View file @
510dbda3
#!/usr/bin/env bash
# Wed 21 Sep 2016 13:06:56 CEST
# Functions for coloring echo commands
red_echo
()
{
echo
-e
"
\0
33[1;31m
${
@
}
\0
33[0m"
}
green_echo
()
{
echo
-e
"
\0
33[1;32m
${
@
}
\0
33[0m"
}
if
[
-z
"
${
DOCUSER
}
"
]
||
[
-z
"
${
DOCPASS
}
"
]
||
[
-z
"
${
DOCSERVER
}
"
]
;
then
echo
"DOCSERVER, DOCUSER and/or DOCPASS undefined -
cannot upload
"
;
red_
echo
"DOCSERVER, DOCUSER and/or DOCPASS undefined -
aborting...
"
;
exit
1
fi
for
file
in
dist/
*
.whl
;
do
echo
"[>>] Uploading
${
file
}
..."
green_
echo
"[>>] Uploading
${
file
}
..."
curl
--silent
--user
"
${
DOCUSER
}
:
${
DOCPASS
}
"
--upload-file
${
file
}
${
DOCSERVER
}
/software/bob/wheels-upload/gitlab/
if
[
$?
!=
0
]
;
then
echo
"[error] curl command finished with an error condition"
red_
echo
"[error] curl command finished with an error condition"
exit
1
fi
done
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