Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 31b691c

Browse files
authored
Merge pull request #314 from jgebal/feature/fixed_publishing_doc_history
Fixed publishing documentation history.
2 parents cd33ba7 + b6a81aa commit 31b691c

2 files changed

Lines changed: 13 additions & 5 deletions

File tree

.travis/push_docs_to_gh_pages.sh

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,22 +71,25 @@ if [[ "${TRAVIS_JOB_NUMBER}" =~ \.1$ ]]; then
7171
now=$(date +"%d %b %Y - %r")
7272
export latest=" - [Latest development version](develop/) - Created $now"
7373
if [ ! -f index.md ]; then
74+
echo "---" >>index.md
75+
echo "layout: default" >>index.md
76+
echo "---" >>index.md
77+
echo "<!-- Auto generated from .travis/push_docs_to_gh_pages.sh -->" >>index.md
7478
echo "# Documentation versions" >>index.md
75-
echo "<!-- Auto generated from .travis/push_docs_to_gh_pages.sh -->" >index.md
7679
echo "" >>index.md
77-
echo "- 4th line placeholder see below" >>index.md
78-
echo "- 5th line placeholder see below" >>index.md
80+
echo "" >>index.md #- 7th line - placeholder for latest release doc
81+
echo "" >>index.md #- 8th line - placeholder for develop branch doc
7982
echo "" >>index.md
8083
echo "## Released Version Doc History" >>index.md
8184
echo "" >>index.md
8285
fi
8386
#If build running on a TAG - it's a new release - need to add it to documentation
8487
if [ -n "${TRAVIS_TAG}" ]; then
8588
latest_release=" - [${TRAVIS_TAG} documentation](${UTPLSQL_VERSION}/) - Created $now"
86-
sed -i '5s@.*@'"Latest release ${latest_release}"'@' index.md
89+
sed -i '7s@.*@'"Latest release ${latest_release}"'@' index.md
8790
fi
8891
#replace 4th line in log
89-
sed -i '5s@.*@'"${latest}"'@' index.md
92+
sed -i '8s@.*@'"${latest}"'@' index.md
9093
#Add and Commit the changes back to pages repo.
9194
git add .
9295
git commit -m "Deploy to gh-pages branch: base commit ${SHA}"

docs/index.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,12 @@ The framework follows industry standards and best patterns of modern Unit Testin
2323
- [Support](about/support.md)
2424
- [Authors](about/authors.md)
2525
- [Contributing](about/CONTRIBUTING.md)
26+
27+
# Demo project
2628

29+
Have a look at our [demo project](https://github.com/utPLSQL/utPLSQL-demo-project/).
30+
31+
It uses [Travis CI](https://travis-ci.org/utPLSQL/utPLSQL-demo-project) to build on every commit, runs all tests, publishes test results and code coverage to [SonarQube](https://sonarqube.com/dashboard?id=utPLSQL%3AutPLSQL-demo-project%3Adevelop).
2732

2833
# Three steps
2934
With just three simple steps you can define and run your unit tests for PLSQL code.

0 commit comments

Comments
 (0)