Add NPM package, debs, rpms and refactor CI/build process
Closes many issues that I'll prune after adding more docs for users.
This commit is contained in:
26
ci/steps/linux-release.sh
Executable file
26
ci/steps/linux-release.sh
Executable file
@ -0,0 +1,26 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
main() {
|
||||
cd "$(dirname "$0")/../.."
|
||||
source ./ci/lib.sh
|
||||
|
||||
if [[ $(arch) == arm64 ]]; then
|
||||
# This, strangely enough, fixes the arm build being terminated for not having
|
||||
# output on Travis. It's as if output is buffered and only displayed once a
|
||||
# certain amount is collected. Five seconds didn't work but one second seems
|
||||
# to generate enough output to make it work.
|
||||
while true; do
|
||||
echo 'Still running...'
|
||||
sleep 1
|
||||
done &
|
||||
trap "exit" INT TERM
|
||||
trap "kill 0" EXIT
|
||||
fi
|
||||
|
||||
./ci/container/exec.sh ./ci/steps/static-release.sh
|
||||
./ci/container/exec.sh yarn pkg
|
||||
./ci/release-container/push.sh
|
||||
}
|
||||
|
||||
main "$@"
|
11
ci/steps/publish-npm.sh
Executable file
11
ci/steps/publish-npm.sh
Executable file
@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
main() {
|
||||
cd "$(dirname "$0")/../.."
|
||||
|
||||
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
|
||||
./ci/container/exec.sh yarn publish --non-interactive release
|
||||
}
|
||||
|
||||
main "$@"
|
16
ci/steps/static-release.sh
Executable file
16
ci/steps/static-release.sh
Executable file
@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
main() {
|
||||
cd "$(dirname "$0")/../.."
|
||||
|
||||
yarn
|
||||
yarn vscode
|
||||
yarn build
|
||||
yarn build:vscode
|
||||
STATIC=1 yarn release
|
||||
./ci/build/test-static-release.sh
|
||||
./ci/build/archive-static-release.sh
|
||||
}
|
||||
|
||||
main "$@"
|
17
ci/steps/test.sh
Executable file
17
ci/steps/test.sh
Executable file
@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
main() {
|
||||
cd "$(dirname "$0")/../.."
|
||||
|
||||
yarn
|
||||
|
||||
git submodule update --init
|
||||
# We do not `yarn vscode` to make test.sh faster.
|
||||
# If the patch fails to apply, then it's likely already applied
|
||||
yarn vscode:patch &> /dev/null || true
|
||||
|
||||
yarn ci
|
||||
}
|
||||
|
||||
main "$@"
|
Reference in New Issue
Block a user