-
Notifications
You must be signed in to change notification settings - Fork 185
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
45 changed files
with
232 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
|
||
.gitattributes export-ignore | ||
.gitignore export-ignore | ||
.gitmodules export-ignore | ||
.travis.yml export-ignore | ||
|
||
.travis export-ignore | ||
|
||
^docs/* linguist-documentation | ||
.travis export-ignore | ||
.gitattributes export-ignore | ||
.gitignore export-ignore | ||
.gitmodules export-ignore | ||
.travis.yml export-ignore | ||
mkdocs.yml export-ignore | ||
tests export-ignore | ||
development export-ignore | ||
sonar-project.properties export-ignore | ||
^docs/* linguist-documentation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/env bash | ||
#If building a new version from a release branch - then version is taken from release branch name | ||
if [[ "${CURRENT_BRANCH}" =~ ^release/v[0-9]+\.[0-9]+\.[0-9]+.*$ ]]; then | ||
version=${CURRENT_BRANCH#release\/} | ||
version=`sed -r "s/(v?[0-9]+\.)([0-9]+\.)([0-9]+)(-.*)/\1\2\3\.${UTPLSQL_BUILD_NO}\4/" <<< "${version}"` | ||
echo ${version} > VERSION | ||
else | ||
version=`cat VERSION` | ||
fi | ||
echo ${version} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
# Change working directory to project root | ||
cd "${UTPLSQL_PROJECT_ROOT}" | ||
mkdocs build --clean --strict |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/env bash | ||
|
||
#inspired by: | ||
# https://github.com/travis-ci/travis-ci/issues/1476 | ||
# http://stackoverflow.com/questions/36915499/push-to-git-master-branch-from-travis-ci | ||
current_dir=`pwd` | ||
commit_message="${1}" | ||
|
||
cd "${UTPLSQL_PROJECT_ROOT}" | ||
|
||
git config --global user.email "builds@travis-ci.com" | ||
git config --global user.name "${UTPLSQL_BUILD_USER_NAME}" | ||
|
||
echo Adding new/modified/removed files | ||
git add --all . | ||
echo Commiting changes | ||
git commit --quiet -m "${commit_message}" | ||
echo Pushing | ||
|
||
# As suggested here: https://github.com/blog/1270-easier-builds-and-deployments-using-git-over-https-and-oauth | ||
# "To avoid writing tokens to disk, don't clone. Instead, just use the full git URL in your push/pull operations (with `.git` suffix)" | ||
git push --quiet https://${github_api_token}@github.com/${UTPLSQL_REPO}.git HEAD:${CURRENT_BRANCH} | ||
|
||
cd "${current_dir}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env bash | ||
|
||
COMMIT_SHA=`git rev-parse HEAD` | ||
|
||
#github API documentation: https://developer.github.com/v3/repos/releases/#create-a-release | ||
#using https://stedolan.github.io/jq/ | ||
curl -H "Authorization: token ${github_api_token}" \ | ||
-X POST --data '{"name":"'${UTPLSQL_VERSION}'","tag_name":"'${UTPLSQL_VERSION}'","target_commitish":"'${COMMIT_SHA}'","prerelease":true' "https://api.github.com/repos/${UTPLSQL_REPO}/releases" |
Oops, something went wrong.