CI fixes
- Splits up test into fmt, lint and test - Fixes bug in build-packages.sh - Minor README.md fixes
This commit is contained in:
@ -31,7 +31,7 @@ This directory contains scripts used for the development of code-server.
|
||||
- [./dev/container](./dev/container)
|
||||
- See [CONTRIBUTING.md](../doc/CONTRIBUTING.md) for docs on the development container
|
||||
- [./dev/ci.sh](./dev/ci.sh) (`yarn ci`)
|
||||
- Runs formatters, linters and tests
|
||||
- Runs `yarn fmt`, `yarn lint` and `yarn test`
|
||||
- [./dev/fmt.sh](./dev/fmt.sh) (`yarn fmt`)
|
||||
- Runs formatters
|
||||
- [./dev/lint.sh](./dev/lint.sh) (`yarn lint`)
|
||||
@ -106,8 +106,12 @@ This directory contains the container for CI.
|
||||
This directory contains a few scripts used in CI.
|
||||
Just helps avoid clobbering the CI configuration.
|
||||
|
||||
- [./steps/fmt.sh](./steps/fmt.sh)
|
||||
- Runs `yarn fmt` after ensuring VS Code is patched
|
||||
- [./steps/lint.sh](./steps/lint.sh)
|
||||
- Runs `yarn lint` after ensuring VS Code is patched
|
||||
- [./steps/test.sh](./steps/test.sh)
|
||||
- Runs `yarn ci` after ensuring VS Code is patched
|
||||
- Runs `yarn test` after ensuring VS Code is patched
|
||||
- [./steps/release.sh](./steps/release.sh)
|
||||
- Runs the full release process
|
||||
- Generates the npm package at `./release`
|
||||
|
@ -53,8 +53,8 @@ release_nfpm() {
|
||||
nfpm_config=$(envsubst < ./ci/build/nfpm.yaml)
|
||||
|
||||
# The underscores are convention for .deb.
|
||||
nfpm pkg -f <(echo "$nfpm_config") --target release-packages/code-server_"$VERSION_$ARCH.deb"
|
||||
nfpm pkg -f <(echo "$nfpm_config") --target release-packages/code-server-"$VERSION-$ARCH.rpm"
|
||||
nfpm pkg -f <(echo "$nfpm_config") --target "release-packages/code-server_${VERSION}_${ARCH}.deb"
|
||||
nfpm pkg -f <(echo "$nfpm_config") --target "release-packages/code-server-$VERSION-$ARCH.rpm"
|
||||
}
|
||||
|
||||
main "$@"
|
||||
|
17
ci/steps/fmt.sh
Executable file
17
ci/steps/fmt.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 fmt
|
||||
}
|
||||
|
||||
main "$@"
|
17
ci/steps/lint.sh
Executable file
17
ci/steps/lint.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 lint
|
||||
}
|
||||
|
||||
main "$@"
|
@ -11,7 +11,7 @@ main() {
|
||||
# If the patch fails to apply, then it's likely already applied
|
||||
yarn vscode:patch &> /dev/null || true
|
||||
|
||||
yarn ci
|
||||
yarn test
|
||||
}
|
||||
|
||||
main "$@"
|
||||
|
Reference in New Issue
Block a user