Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
dorie
dorie
Commits
5be2238b
Commit
5be2238b
authored
Dec 09, 2016
by
Dion Haefner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added auto-deployment for documentation
parent
870ede3b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
5 deletions
+42
-5
.gitlab-ci.yml
.gitlab-ci.yml
+19
-5
deploy_docs.sh
deploy_docs.sh
+23
-0
No files found.
.gitlab-ci.yml
View file @
5be2238b
...
...
@@ -7,20 +7,34 @@ before_script:
-
cd /opt/dune
stages
:
-
main
-
build
-
deploy
main
_job
:
build:
main:
script
:
-
./dune-common/bin/dunecontrol --only=dorie all
-
export PATH=/opt/dune/dorie/build-cmake/bin:$PATH
-
ARGS="--output-on-failure" ./dune-common/bin/dunecontrol --only=dorie make test
stage
:
main
-
./dune-common/bin/dunecontrol --only=dorie make doc
stage
:
build
artifacts
:
name
:
"
$CI_BUILD_NAME"
paths
:
-
dorie/build-cmake/doc/html/
expire_in
:
1 week
update_dune
_job
:
build:
update_dune:
script
:
-
./dune-common/bin/dunecontrol update ||
true
-
./dune-common/bin/dunecontrol exec "rm -rf build-cmake"
-
./dune-common/bin/dunecontrol all
-
export PATH=/opt/dune/dorie/build-cmake/bin:$PATH
-
ARGS="--output-on-failure" ./dune-common/bin/dunecontrol --only=dorie make test
stage
:
main
stage
:
build
deploy:docs:
script
:
-
cd /opt/dune/dorie && bash deploy_docs.sh
stage
:
deploy
only
:
-
master
deploy_docs.sh
0 → 100644
View file @
5be2238b
LOCAL
=
$CI_BUILD_REF
git checkout
$GITBRANCH
-q
REMOTE
=
$(
git rev-parse
$GITBRANCH
@
{
upstream
}
)
git checkout
$LOCAL
-q
cd
$PARENTDIR
if
[
"
$LOCAL
"
=
"
$REMOTE
"
]
;
then
echo
"Deploying documentation to dorie-docs.bitballoon.com"
echo
"{
\"
access_token
\"
:
\"
$CI_BITBALLOON_TOKEN
\"
,
\"
site_id
\"
:
\"
$CI_BITBALLOON_ID
\"
}"
>
.bitballoon
if
[[
-z
build-cmake/doc/html/index.html
]]
;
then
echo
"ERROR: no index.html in doc folder"
exit
1
fi
if
!
command
-v
gem
>
/dev/null 2>&1
;
then
apt-get
install
ruby-dev
fi
if
!
command
-v
bitballoon
>
/dev/null 2>&1
;
then
gem
install
bitballoon
fi
bitballoon deploy build-cmake/doc/html
else
echo
"Commit
$LOCAL
is not the most recent commit on branch
$GITBRANCH
(
$REMOTE
) - skipping deployment"
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment