Commit graph

206 commits

Author SHA1 Message Date
Marc Durdin
3eceea8735 fix(common): report more log detail in increment-version
Relates to #6391.

Adds some logging so we may be able to find out why we are getting
strange results for some PRs.
2022-03-24 08:52:10 +11:00
Eberhard Beilharz
364b84281c
fix(linux): Fix trigger script
The previous PR introduced a bug when run with `set -e` which this
change fixes.
2022-03-08 11:13:31 +01:00
Eberhard Beilharz
ce936ccafd
chore(linux): Debug why Beta build didn't get triggered
This change adds temporary debug code to track down why the beta
build didn't get triggered by outputting the OUTPUT string.
It also counts the lines we're outputting so that we can output
a newline in case we're not outputting anything.
2022-03-07 18:01:10 +01:00
Marc Durdin
b428a8ab97 chore(developer): Merge branch 'master' into feat/developer/node-based-debugger-server 2022-01-28 16:07:19 +11:00
dependabot[bot]
c9bc409b42
chore(deps): bump node-fetch in /resources/build/version
Bumps [node-fetch](https://github.com/node-fetch/node-fetch) from 2.6.1 to 2.6.7.
- [Release notes](https://github.com/node-fetch/node-fetch/releases)
- [Commits](https://github.com/node-fetch/node-fetch/compare/v2.6.1...v2.6.7)

---
updated-dependencies:
- dependency-name: node-fetch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-25 05:25:46 +00:00
Marc Durdin
a858c5166c feat(developer): sentry integration into server
This also tidies up the mkver.sh script and adds the
replaceVersionStrings() function to build-utils.sh for use globally.
2021-12-22 11:16:33 +11:00
Marc Durdin
4abdb64cd0 fix(ios): move sentry settings responsibility to build agent
The build agent already has the relevant `SENTRY_` environment variables
set in order to complete builds for all projects. Thus, we should
exclude these values from the xcode build. However, we need to ensure
that the `SENTRY_URL` and `SENTRY_ORG` variables are imported into the
xcode environment from the build agent environment.
2021-10-07 12:30:25 +11:00
Marc Durdin
b7a9277350 fix: help.keyman.com script file cleanup 2021-09-27 17:17:45 +10:00
Marc Durdin
d9ced1271e
Merge pull request #5738 from keymanapp/chore/common/support-forks-in-trigger-test-builds
chore(common): support forked repos when triggering test builds
2021-09-24 13:54:05 +10:00
dependabot[bot]
a7f17946be
chore(deps): bump ansi-regex in /resources/build/version
Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 5.0.0 to 5.0.1.
- [Release notes](https://github.com/chalk/ansi-regex/releases)
- [Commits](https://github.com/chalk/ansi-regex/compare/v5.0.0...v5.0.1)

---
updated-dependencies:
- dependency-name: ansi-regex
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-22 18:02:36 +00:00
Marc Durdin
200370a1bb chore(common): support forked repos when triggering test builds
This change allows branches from forked repos to trigger test builds.

Note: this will not be run automatically, but only when we manually
tell it to run in TeamCity.
2021-09-22 15:45:54 +10:00
Darcy Wong
676df4b309 chore(common): Add GitHub action to sync crowdin source 2021-09-14 07:11:07 +07:00
Darcy Wong
e881a01e72 chore(common): Update doc for updating crowdin source 2021-09-13 15:23:35 +07:00
Marc Durdin
92336aaa19 chore: fix git date param 2021-08-19 16:52:52 +10:00
Marc Durdin
2b367cf496 chore(common): more on report-history
* Adds support for reporting historical release ranges (--from, --to)
* Filters emoji out of titles
* Uses HISTORY.md formatting for report-history
2021-08-19 16:49:47 +10:00
jahorton
d69f16b75c fix(common): chmod a+x for report-history.sh on macOS, Linux 2021-08-19 08:31:02 +07:00
Marc Durdin
85c3a424a7 chore(common): history reporting fixes
1. Adds parsing of commit comments to extract PR title + number.
2. Uses `--first-parent` to exclude merges that are not to the
   base branch. This means that if you merge a PR into another, that
   child PR will not be listed in the history. From my perspective, this
   is fine -- we prefer chained PRs to be merged bottom-up rather than
   top-down, and this allows for PRs to be collapsed into one history
   entry if we really want that anyway.
3. Cleans up the git log range to work correctly regardless of your
   current branch.
4. Reads git log information from origin/base rather than base.

Note: this assumes that you have recently `git fetch origin` (or
`git pull origin`); that's up to you.
2021-08-19 11:16:13 +10:00
Marc Durdin
ff8ac35106 chore(common): add report-history.sh
Relates to #5172.

Adds a report-history.sh script to help report on what changes will be
in the upcoming build. Uses the same strategy as we currently use to
grab pull request numbers for HISTORY.md.

Also fixes duplicate entries that sometimes appear in HISTORY.md due to
merges from master into PR branches.
2021-07-30 17:35:04 +10:00
Marc Durdin
7ef751fe20 chore(common): report-history mode for version.js
Adds a report-history mode for version.js so we can examine the list of
changes that will be in the next release build for a release branch
(master, beta, stable-x.y).

How to run:

    pushd resources/build/version
    npm install
    npm run build:ts
    popd
    node resources/build/version/lib/index.js report-history -t "$GITHUB_TOKEN" -b "$base"

* Note: Always run from repo root.
* Where $GITHUB_TOKEN is a personal access token
* Where $base, if specified is the branch to validate (default: master)
2021-07-29 16:46:04 +10:00
jahorton
68f817a2af fix(common): resource-build-version yargs audit 2021-07-02 15:30:41 +07:00
Eberhard Beilharz
004ab1d48a
feat(linux): Auto-generate reference help
Closes #4419
2021-06-21 18:32:36 +02:00
Marc Durdin
9fcd72a928 chore(common): bash version for run-required-test-builds.sh 2021-06-11 09:57:06 +10:00
Marc Durdin
73c71e01a3 chore(common): update trigger definitions 2021-06-02 13:51:53 +10:00
Darcy Wong
5b847f9822 chore(web): Merge branch 'master' into feat/web/sync-s-keyman-com 2021-05-28 09:49:13 +07:00
jahorton
abc91ea257 feat(common): unprunes <kbd> styling 2021-05-27 08:55:07 +07:00
jahorton
8f1e1dc65a feat(common): offline help css 2021-05-26 15:40:45 +07:00
Darcy Wong
f08b7ed6a6 fix(web): Update script to modify sourceRoot 2021-05-26 06:48:24 +07:00
jahorton
82a70b39cf chore(ios): remove fat-framework workaround script 2021-05-24 13:54:05 +07:00
Eberhard Beilharz
52e77c4b24
chore(linux): Fix triggering of Jenkins builds for stable branch
Previously we tried to trigger on the wrong, non-existing branch
`PR-stable-14.0`.

(cherry picked from commit 748a7fa13d)
2021-04-23 10:26:43 +02:00
jahorton
e4da1768b9 chore(ios): adds Carthage workaround for Xcode 12 for CI use 2021-04-23 09:43:36 +07:00
dependabot[bot]
b537c759f9
chore(deps): bump y18n from 4.0.0 to 4.0.1 in /resources/build/version
Bumps [y18n](https://github.com/yargs/y18n) from 4.0.0 to 4.0.1.
- [Release notes](https://github.com/yargs/y18n/releases)
- [Changelog](https://github.com/yargs/y18n/blob/master/CHANGELOG.md)
- [Commits](https://github.com/yargs/y18n/commits)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-31 23:59:19 +00:00
Marc Durdin
de0ccca69b chore: increment-version.sh for stable 2021-03-22 15:42:39 +11:00
Marc Durdin
3e45d9d1cb
Merge pull request #4626 from keymanapp/fix/windows/4558-context-help-links
fix(windows): context help links
2021-03-11 09:11:25 +11:00
Eberhard Beilharz
ac9a77f0da
chore(common): Update readme 2021-03-09 12:10:36 +01:00
Marc Durdin
8376eeea27 chore: add global to lua 2021-03-09 14:32:18 +11:00
Marc Durdin
9fd5e11e62 fix(windows): context help links
Fixes #4558.

This makes a number of fixes to get the context help working correctly
in Keyman 14:

1. Adds support for `redirect:` header in help .md files so that we can
   do redirects for the context content in Keyman for Windows help in the
   lua filters.
2. Renames Keyman for Windows help files to .htm, because that's what
   the .chm format is expecting, and what Delphi assumes for its .chm
   integration, and thus splits the html and htm lua filters.
3. Renames and makes more consistent the various context help pages.
4. Adds redirects for all pages that have sufficient content on other
   pages.
5. Fixes the instantiation of help in various Keyman for Windows forms.
6. Defaults to opening help from the Keyman source repo if the calling
   app is running in the source repo (this is just a development-side
   tweak that simplifies my life).
2021-03-09 12:35:43 +11:00
Eberhard Beilharz
63cefab0eb
chore(linux): Improve Sentry environment setting
When running from source we set the environment to `local` when
reporting to Sentry. This change also adds the package version and
the tier as additional Sentry tags.

This is a follow-up of PR #4581.
2021-03-04 16:01:52 +01:00
Eberhard Beilharz
cb9b3ead07
Merge pull request #4582 from keymanapp/fix/linux/4579-version
fix(linux): Improve version number
2021-03-04 11:01:49 +01:00
jahorton
51f9bdc9a7 docs(ios): about the ios l10n updating process 2021-03-04 10:26:03 +07:00
Eberhard Beilharz
33bf5750b0
fix(linux): Improve version number
This change modifies the reported version number for km-config:
if km-config is installed from a debian package, the package
version will be output as well, e.g.:
`km-config version 14.0.252-beta (package version 14.0.252-1+bionic1)`

Otherwise the output will be identical to before:
`km-config version 14.0.252-beta-local`.

This change also modifies the script that sets the version number so
that builds on Jenkins are now detected in addition to TC.

This fixes #4579.
2021-03-03 20:01:34 +01:00
Darcy Wong
b10ae8b0d4 fix(common/resources): Fix help.keyman.com path for CI 2021-03-02 08:41:44 +07:00
Marc Durdin
000867e89b chore(common): allow forced version increment
Allows us to manually run a version increment, for example if there is
a problem with a release build such as running out of space on the
download server.
2021-02-25 06:28:32 +11:00
Darcy Wong
cf758452c0 fix(common): Set help-keyman.com.sh executable 2021-02-24 09:35:40 +07:00
Marc Durdin
380832cda8
Merge pull request #4486 from keymanapp/fix/windows/4484-tsysinfox64-not-signed
fix(windows): tsysinfox64 not signed
2021-02-12 15:47:19 +11:00
Marc Durdin
42511c442e chore: whitespace 2021-02-12 15:44:07 +11:00
Darcy Wong
beeec37195
Merge pull request #4470 from keymanapp/chore/ios/check-in-help
change(ios/app): Generate offline help from markdown
2021-02-12 11:35:42 +07:00
Marc Durdin
09ace08f7e fix(windows): tsysinfox64 not signed
Fixes #4484.

tsysinfox64 was being signed, but too late in the build
process as it is embedded into tsysinfo.exe. There was
code to sign it earlier, but that was being skipped due
to a missing build flag. This has been a problem for
some time.
2021-02-12 14:20:41 +11:00
Joshua Horton
b5535c52e4
Merge pull request #4474 from keymanapp/fix/common/core/web/mock-construction-caret-index-zero
fix(common/core/web): mock construction with caret at index 0
2021-02-11 15:48:52 +07:00
Marc Durdin
afdbf52f51 chore: add common/core/web to trigger defs 2021-02-11 18:57:59 +11:00
Marc Durdin
af860002d4
Merge pull request #4472 from keymanapp/fix/common/serial-comment-creation
fix(common): create GitHub comments serially
2021-02-11 16:17:05 +11:00