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
d11f2245
Commit
d11f2245
authored
Dec 11, 2016
by
Dion Haefner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added auto-deployment of documentation
#19
parent
bb5573a1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
7 deletions
+44
-7
.gitlab-ci.yml
.gitlab-ci.yml
+21
-7
deploy_docs.sh
deploy_docs.sh
+23
-0
No files found.
.gitlab-ci.yml
View file @
d11f2245
...
...
@@ -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
-
ARGS="--output-on-failure -j 2" ./dune-common/bin/dunecontrol --only=dorie make test
-
./dune-common/bin/dunecontrol --only=dorie make doc
stage
:
build
artifacts
:
name
:
"
$CI_BUILD_NAME"
paths
:
-
$CI_PROJECT_DIR/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
-
ARGS="--output-on-failure -j 2" ./dune-common/bin/dunecontrol --only=dorie make test
stage
:
build
deploy:docs:
script
:
-
cd $CI_PROJECT_DIR && bash deploy_docs.sh
stage
:
deploy
only
:
-
master
deploy_docs.sh
0 → 100644
View file @
d11f2245
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