Skip to content
Open
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
5 changes: 5 additions & 0 deletions resources/build/version/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Dependency directories
node_modules

# Build output
build
6 changes: 6 additions & 0 deletions resources/build/version/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Announce publication of merged pull requests

This node module automatically adds a comment to each merged pull request since
the last successful deployment.

It is wrappered by ../../teamcity/keyboards-build-deploy.sh for normal CI usage.
33 changes: 33 additions & 0 deletions resources/build/version/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/usr/bin/env bash
# Keyman is copyright (C) SIL Global. MIT License.

## START STANDARD BUILD SCRIPT INCLUDE
# adjust relative paths as necessary
THIS_SCRIPT="$(readlink -f "${BASH_SOURCE[0]}")"
. "${THIS_SCRIPT%/*}/../../../resources/builder.inc.sh"
## END STANDARD BUILD SCRIPT INCLUDE

cd "$THIS_SCRIPT_PATH"

################################ Main script ################################

builder_describe "Build version tooling" clean configure build test

builder_describe_outputs \
configure /resources/build/version/node_modules \
build /resources/build/version/build/src/index.js

builder_describe_internal_dependency \
report-stable-changes:project build:project

builder_parse "$@"

do_test() {
node_modules/.bin/tsc --build tests/
node_modules/.bin/mocha
}

builder_run_action clean rm -rf build/ node_modules/
builder_run_action configure npm ci
builder_run_action build node_modules/.bin/tsc --build
builder_run_action test do_test
Loading