summaryrefslogtreecommitdiff
path: root/run-ci
blob: e07354168e81c8076b63a11527f017bdf429792d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash
# Run GUI Unit Tests as part of the CI Build process#

set -e

# When called from openbmc-build-scripts, the `pwd` could be anywhere, but
# the root of the repo is passed in the first argument.  Switch to the repo
# root so npm/git run in the right place.
if [ -n "$1" ]; then
    cd "$1"
fi

npm ci
npm run test:unit