Skip to content

Commit 74ba108

Browse files
derick-montaguerfrandse
authored andcommitted
Add run-ci shell script
The GUI has a set of unit tests that are currrently only being run using a pre-comit hook. This hook can be overridden and we would like to have the unit tests run during the CI build to assure that the GUI unit tests are passing. Adding this shell script so that we can run any GUI unit tests during the CI build. Signed-off-by: Derick Montague <[email protected]> Change-Id: I1b62f47fb05d4f36796c5cdb4e7529b1f3afd0d5
1 parent 00fe7b3 commit 74ba108

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

run-ci

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
# Run GUI Unit Tests as part of the CI Build process#
3+
4+
set -e
5+
6+
# When called from openbmc-build-scripts, the `pwd` could be anywhere, but
7+
# the root of the repo is passed in the first argument. Switch to the repo
8+
# root so npm/git run in the right place.
9+
if [ -n "$1" ]; then
10+
cd "$1"
11+
fi
12+
13+
# It is expected that the format-code script was already run as part of the CI
14+
# so the node modules needed to run this script will be installed
15+
npm run test:unit

0 commit comments

Comments
 (0)