Skip to content

Commit 28cdee3

Browse files
committed
Refactoring and adding dispatch of other repositories
1 parent 5b64836 commit 28cdee3

18 files changed

Lines changed: 64 additions & 67 deletions

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
.travis.yml export-ignore
55
mkdocs.yml export-ignore
66
.travis export-ignore
7+
.github export-ignore
78
sonar-project.properties export-ignore
89
tests export-ignore
910
development export-ignore
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
set -ev
44
SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
5-
cd ${SCRIPT_DIR}/../source
5+
cd ${SCRIPT_DIR}/../../source
66

77
INSTALL_FILE="install_headless_with_trigger.sql"
88
if [[ ! -f "${INSTALL_FILE}" ]]; then

.travis/install_utplsql_release.sh renamed to .github/scripts/install_utplsql_release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
set -ev
44
SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
5-
cd ${SCRIPT_DIR}/../${UTPLSQL_DIR}/source
5+
cd ${SCRIPT_DIR}/../../${UTPLSQL_DIR}/source
66

77
"$SQLCLI" sys/$ORACLE_PWD@//$CONNECTION_STR AS SYSDBA <<SQL
88
set serveroutput on
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# - index.md logging doc history
88

99
# How to run:
10-
# - From repository root .travis/push_docs_to_gh_pages.sh
10+
# - From repository root .github/scripts/push_docs_to_gh_pages.sh
1111

1212
# Required files / directories (relative from repo root)
1313
# - File: "docs/index.md" with that contains develop docs
@@ -16,7 +16,7 @@
1616
LATEST_DOCS_BRANCH="develop"
1717
GITHUB_IO_REPO='utPLSQL/utPLSQL.github.io'
1818
GITHUB_IO_BRANCH='main'
19-
19+
DOCS_DIR='../../docs/.'
2020

2121
# ENV Variable checks are to help with configuration troubleshooting, they silently exit with unique message.
2222
# Anyone one of them not set can be used to turn off this functionality.
@@ -40,18 +40,18 @@ cd ./utPLSQL
4040
echo "updating 'develop' documentation directory"
4141
mkdir -p ./develop
4242
rm -rf ./develop/**./* || exit 0
43-
cp -a ../../docs/. ./develop
43+
cp -a ${DOCS_DIR} ./develop
4444

4545
# If a Tagged Build then copy to it's own directory as well and to the 'latest' release directory
4646
if [ "${GITHUB_REF_TYPE}" == "tag" ]; then
4747
echo "Creating directory ./${UTPLSQL_VERSION}"
4848
mkdir -p ./${UTPLSQL_VERSION}
4949
rm -rf ./${UTPLSQL_VERSION}/**./* || exit 0
50-
cp -a ../../docs/. ./${UTPLSQL_VERSION}
50+
cp -a ${DOCS_DIR} ./${UTPLSQL_VERSION}
5151
echo "Populating 'latest' directory"
5252
mkdir -p ./latest
5353
rm -rf ./latest/**./* || exit 0
54-
cp -a ../../docs/. ./latest
54+
cp -a ${DOCS_DIR} ./latest
5555
fi
5656
# Stage changes for commit
5757
git add .
@@ -67,7 +67,7 @@ if [ ! -f index.md ]; then
6767
echo "---" >>index.md
6868
echo "layout: default" >>index.md
6969
echo "---" >>index.md
70-
echo "<!-- Auto generated from .travis/push_docs_to_github_io.sh -->" >>index.md
70+
echo "<!-- Auto generated from .github/scripts/push_docs_to_github_io.sh -->" >>index.md
7171
echo "# Documentation versions" >>index.md
7272
echo "" >>index.md
7373
echo "" >>index.md #- 7th line - placeholder for latest release doc
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
set -ev
44
SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
5-
cd ${SCRIPT_DIR}/../examples
5+
cd ${SCRIPT_DIR}/../../examples
66

77
"$SQLCLI" $UT3_DEVELOP_SCHEMA/$UT3_DEVELOP_SCHEMA_PASSWORD@//$CONNECTION_STR <<SQL
88

.github/scripts/set_version_numbers_env.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
UTPLSQL_BUILD_NO=$( expr ${GITHUB_RUN_NUMBER} + ${UTPLSQL_BUILD_NO_OFFSET} )
4-
UTPLSQL_VERSION=$(.travis/get_project_version.sh)
4+
UTPLSQL_VERSION=$(.github/scripts/get_project_version.sh)
55

66
echo "UTPLSQL_BUILD_NO=${UTPLSQL_BUILD_NO}" >> $GITHUB_ENV
77
echo "UTPLSQL_VERSION=${UTPLSQL_VERSION}" >> $GITHUB_ENV

0 commit comments

Comments
 (0)