Skip to content

Latest commit

 

History

History
111 lines (81 loc) · 3.78 KB

README-MAINTAINER.md

File metadata and controls

111 lines (81 loc) · 3.78 KB

license CI on Push GitHub issues GitHub pulls

Maintainer info

Project repository

The project is hosted on GitHub:

To clone the stable branch (xpack), run the following commands in a terminal (on Windows use the Git Bash console):

rm -rf ~/Work/device-qemu-cortexa-xpack.git && \
mkdir -p ~/Work && \
git clone \
  https://github.com/micro-os-plus/devices-qemu-cortexa-xpack.git \
  ~/Work/device-qemu-cortexa-xpack.git

For development purposes, clone the xpack-develop branch:

rm -rf ~/Work/device-qemu-cortexa-xpack.git && \
mkdir -p ~/Work && \
git clone \
  --branch xpack-develop \
  https://github.com/micro-os-plus/devices-qemu-cortexa-xpack.git \
  ~/Work/device-qemu-cortexa-xpack.git

Prerequisites

A recent xpm, which is a portable Node.js command line application.

Code formatting

Code formatting is done using clang-format --style=file, either manually from a script, or automatically from Visual Studio Code, or the Eclipse CppStyle plug-in.

Publish on the npmjs.com server

  • select the xpack-develop branch
  • commit all changes
  • update versions in README.md and README-MAINTAINER.md
  • update CHANGELOG.md
  • commit with a message like prepare v2.1.0
  • npm pack and check the content of the archive, which should list only package.json, README.md, LICENSE, CHANGELOG.md, the sources and CMake/meson files; possibly adjust .npmignore
  • npm version patch, npm version minor, npm version major
  • push the xpack-develop branch to GitHub
  • the postversion npm script should also update tags via git push origin --tags
  • wait for the CI job to complete (https://github.com/micro-os-plus/devices-qemu-cortexa-xpack/actions/workflows/CI.yml)
  • npm publish --tag next (use npm publish --access public when publishing for the first time)

The version is visible at:

Testing

The project includes unit tests.

To run them, run:

cd device-qemu-cortexa-xpack.git
xpm run install-all
xpm run test

Continuous Integration

The CI tests are performed on GitHub Actions, as the CI on Push workflow.

Update the repo

When the package is considered stable:

  • with a Git client (VS Code is fine)
  • merge xpack-develop into xpack
  • push to GitHub
  • select xpack-develop

Tag the npm package as latest

When the release is considered stable, promote it as latest:

  • npm dist-tag ls @micro-os-plus/devices-qemu-cortexa
  • npm dist-tag add @micro-os-plus/devices-qemu-cortexa@2.1.0 latest
  • npm dist-tag ls @micro-os-plus/devices-qemu-cortexa

Share on Twitter

  • in a separate browser windows, open TweetDeck
  • using the @micro_os_plus account
  • paste the release name like µOS++ device-qemu-cortexa v2.1.0 released
  • paste the link to the Web page release
  • click the Tweet button