Skip to content
This repository has been archived by the owner on Sep 23, 2021. It is now read-only.

Development section #160

Merged
merged 8 commits into from
Oct 8, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ Branch created with the intention of functioning as an introduction web site of

Here you can find code examples and generated files, detailed information about the project, an installation guide, screen captures, a blog with the latest news and links to the documentation and contact information.

Link to the web site: http://flyve.org/flyve-mdm-ios-inventory-agent/
Link to the web site: http://flyve.org/ios-inventory-agent/
Empty file added _data/whitelist_version.yml
Empty file.
3 changes: 3 additions & 0 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@
<script src="{{ "/js/jazzy.js" | absolute_url }}" defer></script>
{% endif %}

{% if page.layout == 'testReport' %}
<link rel="stylesheet" href="{{ "/css/testReport.css" | absolute_url }}">
{% endif %}
<link rel="canonical" href="{{ page.url | replace:'index.html','' | absolute_url }}">
<link rel="alternate" type="application/rss+xml" title="{{ site.title | escape }}" href="{{ "/feed.xml" | absolute_url }}">

Expand Down
77 changes: 70 additions & 7 deletions _includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,78 @@
<a class="color-type-secondary" href="{{ '/screenshots' | absolute_url }}">Screenshots</a>
</li>

<li class="dropdown" data-proofer-ignore>
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Development<i class="glyph glyph-chevron-down-2"></i></a>
<li class="dropdown">
<a
href="#"
class="dropdown-toggle"
data-toggle="dropdown"
role="button"
aria-expanded="false"
aria-label="Development"
>
Development <i class="glyph glyph-chevron-down-2"></i>
</a>
<ul class="dropdown-menu" role="menu">
<li><a href="{{ 'development/code-documentation/' | absolute_url }}">Code documentation</a></li>
<li class="divider"></li>
<li><a href="{{ 'development/coverage/' | absolute_url }}">Coverage</a></li>
<li><a href="{{ 'development/test-reports/' | absolute_url }}">Test report</a></li>
<li class="dropdown-submenu">
<a
href="#"
class="dropdown-toggle"
data-toggle="dropdown"
aria-label="Code documentation"
>
Code documentation <i class="glyph glyph-chevron-down-2"></i>
</a>
<ul class="dropdown-menu">
<li><a href="{{ '/development/code-documentation/develop' | absolute_url }}">Develop</a></li>
<li><a href="{{ '/development/code-documentation/master' | absolute_url }}">Master</a></li>
{% for version in site.data.whitelist_version %}
<li>
<a href="{{ 'development/code-documentation/support/' | absolute_url }}{{ version }}">{{ version }}</a>
</li>
{% endfor %}
</ul>
</li>
<li class="divider"></li>
<li class="dropdown-submenu">
<a
href="#"
class="dropdown-toggle"
data-toggle="dropdown"
aria-label="Coverage"
>
Coverage<i class="glyph glyph-chevron-down-2"></i>
</a>
<ul class="dropdown-menu">
<li><a href="{{ '/development/coverage/develop/' | absolute_url }}">Develop</a></li>
<li><a href="{{ '/development/coverage/master/' | absolute_url }}">Master</a></li>
{% for version in site.data.whitelist_version %}
<li>
<a href="{{ 'development/coverage/support/' | absolute_url }}">{{ version }}</a>
</li>
{% endfor %}
</ul>
</li>
<li class="dropdown-submenu">
<a
href="#"
class="dropdown-toggle"
data-toggle="dropdown"
aria-label="Coverage"
>
Test Report<i class="glyph glyph-chevron-down-2"></i>
</a>
<ul class="dropdown-menu">
<li><a href="{{ '/development/test-report/develop/' | absolute_url }}">Develop</a></li>
<li><a href="{{ '/development/test-report/master/' | absolute_url }}">Master</a></li>
{% for version in site.data.whitelist_version %}
<li>
<a href="{{ 'development/test-report/support/' | absolute_url }}">{{ version }}</a>
</li>
{% endfor %}
</ul>
</li>
</ul>
</li>
</li>

<li>
<a class="color-type-secondary" href="{{ '/howtos' | absolute_url }}">How-tos</a>
Expand Down
13 changes: 13 additions & 0 deletions _layouts/testReport.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
layout: container
---

<div class="test-report">

<script>
let changeDisplay = function (id) {
$(id).slideToggle()
}
</script>
{{ content }}
</div>
24 changes: 24 additions & 0 deletions _sass/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,30 @@ header {
}
}

.dropdown-submenu {
display: list-item;
position: relative;

&>.dropdown-menu {
left: 100%;
margin-top: -52px;
top: 0;
}

.pull-left {
float: none;

&>.dropdown-menu {
left: -100%;
}
}

i {
font-size: 6px;
line-height: 15px;
}
}

@media (max-width: 1084px) {
.logo {
height: 30px;
Expand Down
46 changes: 46 additions & 0 deletions ci/update_version_list.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
#!/usr/bin/env bash

COMMIT_MESSAGE=$(git log --pretty=oneline -n 1 $CIRCLE_SHA1)

# only update list when documentation is updated
if [[ $COMMIT_MESSAGE == *"ci(docs): generate documentation with jazzy for version"* && -z "$CIRCLE_PULL_REQUEST" ]]; then

# check if support folder exists
if [ -d "development/code-documentation/support" ]; then

# remove list to create a new one and not duplicate folders
rm ./_data/whitelist_version.yml

# create fresh list
touch ./_data/whitelist_version.yml

# set path to directory where the versions folders are
FOLDER_PATH="development/code-documentation/support"

# get folders in release directory
DIRS=`ls $FOLDER_PATH`

# add version folders to list
for DIR in $DIRS
do
echo - ${DIR} >> ./_data/whitelist_version.yml
done
# if the list has changed commit and push changes
if [ -n "$(git status --porcelain _data/whitelist_version.yml)" ]; then

echo "Updating version list"

# configure git
git config --global user.email "[email protected]"
git config --global user.name "Teclib' bot"

# add new remote to push changes
git remote remove origin
git remote add origin https://$GITHUB_USER:[email protected]/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME.git

git add _data/whitelist_version.yml && git commit -m "ci(list): update version list"
git push origin gh-pages
fi
fi

fi
56 changes: 56 additions & 0 deletions css/testReport.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
---
---

.test-report {

p {
padding: 10px;
}

.total {
h2 {
padding-top: 2px;
}
}

.test-suite {
cursor: pointer;
margin: 11.5px 0px;
}

.test-suite--failing {
h4 {
background-color: #FA4444;
padding: 4px 4px;
color: #000000;
overflow: auto;
}
}

.test-suite--passing {
h4 {
background-color: #6fba6f;
padding: 4px 4px;
color: #000000;
overflow: auto;
}
}

.test-case--passing {
margin-left: 0px;
margin-right: 0px;
border-bottom: groove;
border-width: 1px;
border-color: #6fba6f;
background-color: #eaeaea;
}

.test-case--failing {
margin-left: 0px;
margin-right: 0px;
border-bottom: groove;
border-width: 1px;
border-color: #FA4444;
background-color: #eaeaea;
}
}
3 changes: 3 additions & 0 deletions development/code-documentation/master/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
layout: jazzy
---
5 changes: 5 additions & 0 deletions development/coverage/master/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
layout: coverage
---

<h2>Coming soon ...</h2>
92 changes: 92 additions & 0 deletions development/test-report/develop/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
---
layout: testReport
---

<div class="total row">
<h2 class="col-sm-18">Test Results</h2>
<h2 class="col-sm-6 text-right">8 tests</h2>
</div>

<div>
<div class="test-suite row test-suite--passing" onclick="changeDisplay('#test-1')">
<h4 class="col-sm-20">FlyveMDMInventoryAgentUITests</h4>
<h4 class="col-sm-4 text-right">1 tests</h4>
</div>
<!-- Failing or passing class -->
<div id="test-1">
<div class="test-case--passing row">
<div class="col-sm-20">
<p>testTakeScreenshots</p>
</div>
<div class="col-sm-4 text-right">
<p>29.457s</p>
</div>
</div>
</div>
</div>

<div>
<div class="test-suite row test-suite--passing" onclick="changeDisplay('#test-2')">
<h4 class="col-sm-20">FlyveMDMInventoryAgentTests</h4>
<h4 class="col-sm-4 text-right">7 tests</h4>
</div>
<div id="test-2">
<div class="test-case--passing row">
<div class="col-sm-12">
<p>testAgentSettingsController</p>
</div>
<div class="col-sm-12 text-right">
<p>0.020s</p>
</div>
</div>
<div class="test-case--passing row">
<div class="col-sm-12">
<p>testCreateInventory</p>
</div>
<div class="col-sm-12 text-right">
<p>0.045s</p>
</div>
</div>
<div class="test-case--passing row">
<div class="col-sm-12">
<p>testFooterView</p>
</div>
<div class="col-sm-12 text-right">
<p>0.017s</p>
</div>
</div>
<div class="test-case--passing row">
<div class="col-sm-12">
<p>testInventoryTableView</p>
</div>
<div class="col-sm-12 text-right">
<p>0.017s</p>
</div>
</div>
<div class="test-case--passing row">
<div class="col-sm-12">
<p>testLoadingIndicatorView</p>
</div>
<div class="col-sm-12 text-right">
<p>0.022s</p>
</div>
</div>
<div class="test-case--passing row">
<div class="title col-sm-12">
<p>testMessageLabel</p>
</div>
<div class="col-sm-12 text-right">
<p>0.021s</p>
</div>
</div>
<div class="test-case--passing row">
<div class="col-sm-12">
<p>testSendXMLInventory</p>
</div>
<div class="col-sm-12 text-right">
<p>0.053s</p>
</div>
</div>
</div>

</div>
5 changes: 5 additions & 0 deletions development/test-report/master/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
layout: testReport
---

<h2>Coming soon...</h2>
Loading